Group Policy WMI Queries for Windows 8 do not work for Windows 8.1

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).

Written on July 5, 2013