Windows 10 Version number in WMI
Hi there, I'm messing around with the Windows 10 Enterprise preview (build 9926) and seem to have run into something funny... my GPO WMI filters don't seem to want to apply... After searching around and finding out about gwmi in PowerShell, I've done some testing and it doesn't really seem to add up!
powershell command:
gwmi -Query 'SELECT Version, ProductType FROM Win32_OperatingSystem WHERE ((Version >= "6.2.%") AND (ProductType = "1"))'
This query should return SOMETHING if it's true, or nothing, just return to the prompt it false.
If I run this on a windows 8.1 install, it returns true. If I run this on a Windows 10 install, it returns false. Windows 10 seems to think that Version 10.0.9926 is NOT greater than or equal to 6.2.%
Could someone else try running that query on a Windows 10 preview install from a powershell command promp and confirm that they get the same "false" response that I do?
If I change it to Version >= "10" or "10.%" then it returns true... so the query is correct, it's just not evaluating Windows 10's version number to be greater than 6.2.% (Windows 8.1's version number)
Or maybe I'm just taking crazy pills
Hi there, I'm messing around with the Windows 10 Enterprise preview (build 9926) and seem to have run into something funny... my GPO WMI filters don't seem to want to apply... After searching around and finding out about gwmi in PowerShell, I've done some testing and it doesn't really seem to add up!
powershell command:
gwmi -Query 'SELECT Version, ProductType FROM Win32_OperatingSystem WHERE ((Version >= "6.2.%") AND (ProductType = "1"))'
This query should return SOMETHING if it's true, or nothing, just return to the prompt it false.
If I run this on a windows 8.1 install, it returns true. If I run this on a Windows 10 install, it returns false. Windows 10 seems to think that Version 10.0.9926 is NOT greater than or equal to 6.2.%
Could someone else try running that query on a Windows 10 preview install from a powershell command promp and confirm that they get the same "false" response that I do?
If I change it to Version >= "10" or "10.%" then it returns true... so the query is correct, it's just not evaluating Windows 10's version number to be greater than 6.2.% (Windows 8.1's version number)
Or maybe I'm just taking crazy pills