Skip to main content

GPO WMI Filters

Hostname Filter

Select * From Win32_ComputerSystem Where Name = "ComputerName"

image.png

Windows 2019 Domain Controller Filter

SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.17763" AND ProductType LIKE "2"

image.png

Windows 2019 Member Server Filter 

SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.17763" AND ProductType LIKE "3"

image.png

Windows Server 2016 Domain Controller Filter

SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.14393" AND ProductType LIKE "2"

image.png

Windows Server 2016 Server Member Filter 

SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.14393" AND ProductType LIKE "3"

image.png

Windows Server 2012 R2 Server Member Filter

SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "6.3%" AND ProductType="3"

image.png

Windows Server Member (Hyper-V) Filter 

SELECT * FROM Win32_ServerFeature WHERE ID=20

image.png

Windows Web Service (IIS) Role Filter

SELECT Name FROM Win32_ServerFeature WHERE Name = "Web Server (IIS)"

image.png