Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com Page 1 of 13
CLOSE X
Loading Image...
NOGEEKLEFTBEHIND.COM
Desktop / Server
Domain Controller / Non-Domain Controller
32-bit / 64-bit
If you havent used WMI filters before, they show up in Group Policy
Management at the bottom, between Group Policy Objects and Starter GPOs.
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 2 of 13
The WMI filters use a query to scope down the application of the Group Policy
Object applicability. Heres what a typical WMI OS filter looks like:
ProductType 1 = Desktop OS
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 3 of 13
5.1 Windows XP
To create your own WMI filters, here is an updated list of WMI filter queries
from Window XP Windows 8.1 and from Server 2003 to Server 2012 R2.
IMPORTANT DISCLAIMER:
Always test your Group Policies and WMI filters before deploying.
DESKTOPS
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 4 of 13
WINDOWS XP
Windows XP
select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version
like "5.2%") AND ProductType="1"
Windows XP 32-bit
select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version
like "5.2%") AND ProductType="1" AND NOT OSArchitecture = "64-bit"
Windows XP 64-bit
select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version
like "5.2%") AND ProductType="1" AND OSArchitecture = "64-bit"
WINDOWS VISTA
Windows Vista
select * from Win32_OperatingSystem WHERE Version like "6.0%" AND
ProductType="1"
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 5 of 13
WINDOWS 7
Windows 7
select * from Win32_OperatingSystem WHERE Version like "6.1%" AND
ProductType="1"
Windows 7 32-bit
select * from Win32_OperatingSystem WHERE Version like "6.1%" AND
ProductType="1" AND NOT OSArchitecture = "64-bit"
Windows 7 64-bit
select * from Win32_OperatingSystem WHERE Version like "6.1%" AND
ProductType="1" AND OSArchitecture = "64-bit"
WINDOWS 8
Windows 8
select * from Win32_OperatingSystem WHERE Version like "6.2%" AND
ProductType="1"
Windows 8 32-bit
select * from Win32_OperatingSystem WHERE Version like "6.2%" AND
ProductType="1" AND NOT OSArchitecture = "64-bit"
Windows 8 64-bit
select * from Win32_OperatingSystem WHERE Version like "6.2%" AND
ProductType="1" AND OSArchitecture = "64-bit"
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 6 of 13
WINDOWS 8.1
Windows 8.1
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND
ProductType="1"
Windows 8.1 32-bit
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND
ProductType="1" AND NOT OSArchitecture = "64-bit"
Windows 8.1 64-bit
select * from Win32_OperatingSystem WHERE Version like "6.3%" AND
ProductType="1" AND OSArchitecture = "64-bit"
SERVERS
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 7 of 13
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 8 of 13
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 9 of 13
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 10 of 13
Comments (26)
Sort by: Date Rating Last Activity
Is there anyway to use a WMI filter to check for a 64bit install of Office? (2007, 2010 and
2013)
We have an Outlook plugin that needs to be pushed out with GPO, it come sin 32 and 64 bit
flavours. Thus I need a Policy to push the 64bit plugin to the 64bit Outlook installs.
Thanks in advance!
Thanks for the info. Just a note: according to microsoft documentation the OSArchitecture
value is not supported and does not exist in XP. The queries above would be invalid...
Reply
The OSArchitecture attribute is NOT AVAILABLE with Server 2003 and XP.
OSArchitecture
Data type: string
Access type: Read-only
Architecture of the operating system, as opposed to the processor. This property can be
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 11 of 13
localized.
Example: 32-bit
****************************************************************************
Windows Server 2003 and Windows XP: This property is not available.
****************************************************************************
http://msdn.microsoft.com/en-us/library/aa394239(...
Reply
The OsArchitecture property is not an available for Windows Server 2003, so those examples
won't work.
Reply
Hello, is there a way to use WMI filter to check for differents versions of the same OS? I would
like to put different GPO settings based on if the version is Standard, Enterprise, Datacenter,
etc.
Reply
Reply
Reply
Reply
0 (0x0)Standalone workstation
1 (0x1)Member workstation
2 (0x2)Standalone server
3 (0x3)Member server
4 (0x4)Backup Domain Controller
5 (0x5)Primary Domain Controller
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 12 of 13
Reply
Reply
For Windows 10, just change the 6.x to 10.x (they made a huge jump).
i.e.
Reply
Reply
Using WMI Filters to apply Group Policy to a target operating system not working..
Reply
This info is a LIFE SAVER! Thanks a million for the endless hours saved searching for these. :-)
Reply
Hey,
your XP Queries are not going to Work. OSArchitecture is unknown and cannot be processed.
select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version like "5.2%")
AND ProductType="1"
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017
Updated List of OS Version Queries for WMI Filters NoGeekLeftBehind.com Page 13 of 13
Reply
I'd like to see information on filter for lockscreen. Windows 7 and Windows 10 exclusion
groups no execute lockscreen.
Reply
windows 10 is the same as the windows 8 options, only change the Version to 10 instead of
6.3
windows 10
select * from Win32_OperatingSystem where Version like "10.%"
windows 10 32bit
select * from Win32_OperatingSystem WHERE Version like "10.%" AND ProductType="1"
AND NOT OSArchitecture = "64-bit"
windows 10 64bit
select * from Win32_OperatingSystem WHERE Version like "10.%" AND ProductType="1"
AND OSArchitecture = "64-bit"
Reply
@Fred and the other 13. I would have thought its obvious to work out.............
Windows 10
Windows 10
select * from Win32_OperatingSystem WHERE Version like "10.0%" AND ProductType="1"
Windows 10 32-bit
select * from Win32_OperatingSystem WHERE Version like "10.0%" AND ProductType="1"
AND NOT OSArchitecture = "64-bit"
Windows 10 64-bit
select * from Win32_OperatingSystem WHERE Version like "10.0%" AND ProductType="1"
AND OSArchitecture = "64-bit"
Reply
http://www.nogeekleftbehind.com/2013/09/10/updated-list-of-os-version-queries-for-... 26/01/2017