It may be useful to be able to apply GPOs to a certain type of machines only. For example, you don't want the GPO that automatically shuts down the OS to be applied to servers. To meet this need, Microsoft offers a solution called WMI filter, so let's see how it works and how to create them!
select * from Win32_OperatingSystem WHERE ProductType = "1"
select * from Win32_OperatingSystem where Version like "10.0.2%" and ProductType="1"
select * from Win32_OperatingSystem where Version like "10.0.1%" and ProductType="1"
select * from Win32_OperatingSystem where (Version like "10.%" or Version like "6.0%") and ProductType="1"
select * from Win32_OperatingSystem where Version like "10.0.2%" and ProductType="3"
select * from Win32_OperatingSystem where ProductType="2"
select * from Win32_OperatingSystem where ProductType="3"
select * from Win32_OperatingSystem where Version like "10.0.1%" and (ProductType="1" or ProductType="2") and OSArchitecture = "64-bit"
Here are some parameters to help to make your own filters.
Parameters | |
---|---|
Desktops | ProductType = "1" |
Servers (Domain Controller Only) | ProductType = "2" |
Servers (Non-Domain Controller) | ProductType = "3" |
32 bits | NOT OSArchitecture = "64-bit" |
64 bits | OSArchitecture = "64-bit" |
Windows XP or Server 2003/R2 | Version like "5.1%" or Version like "5.2%" |
Windows Vista or Server 2008 | Version like "6.0%" |
Windows 7 or Server 2008R2 | Version like "6.1%" |
Windows 8 Server 2012 | Version like "6.2%" |
Windows 8.1 or Server 2012R2 | Version like "6.3%" |
Windows 10 or Server 2016/2019 | Version like "10.0.1%" |
Windows 11 or Server 2025 | Version like "10.0.2%" |
Contact :