Group Policy WMI Queries for Windows 8 do not work for Windows 8.1
Written on July 4, 2013

With Windows 8.1, Microsoft have increased the operating system’s internal version number from Windows 8’s 6.2.x to 6.3.x. This means that if you have any “Windows 8” WMI queries, they’ll fail for 8.1. You can use the following query to get around this:

SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE "6.2.%" OR Version LIKE "6.3.%") AND ProductType="1"

This query will return both Windows 8 and 8.1, but not Windows 7 (6.1) or Vista (6.0).

Comments/questions

There's no commenting functionality here. If you'd like to comment, please either mention me (@[email protected]) on Mastodon or email me. I don't have any logging or analytics running on this website, so if you found something useful or interesting it would mean a lot to hear from you.