WMI-Anfrage testen

Früher ging das mit Get-WMIObject, inzwischen nimmt man dafür Get-CimInstance

Get-CimInstance -Query "select * from Win32_OperatingSystem where (Version like `"6.%`" or Version like `"10.%`") and ProductType = `"1`"";