corrected logic in Test-TargetResource, uses registry instead of WMI