Tag: WMI
-
Excluding WMI system properties with Powershell
When using Windows Management Instrumentation (WMI) in your Powershell script you will see a load of system properties returned. These are indicated by a preceding “__” (double underscore) as seen below when issuing get-wmiobject -class “Win32_Processor”: An obvious attempt to prevent these system properties from being returned would be to use the -ExcludeProperty switch…