A list of GPO WMI filters

A list of GPO WMI filters

Windows Gruppenrichtlinien WMI Filter

In diesem Artikel stelle ich eine Liste vieler WMI Filter ein, die für eine gezielte Anwendung der Gruppenrichtlinien sorgt. A list of GPO WMI filters enthält Filter für Server- und Desktop-Systeme.

A list of GPO WMI filters

Diese Liste enthält die Standard WMI Filter für Windows Gruppenrichtlinien für Server- und Desktop-Systeme.

WMI filter for Windows 11 All Versionsselect * from Win32_OperatingSystem where Version like "10.0.2%" and ProductType="1"
WMI filter for Windows 11 23H2select * from Win32_OperatingSystem where Version like "10.0.22631%" and ProductType="1"
WMI filter for Windows 11 22H2select * from Win32_OperatingSystem where Version like "10.0.22621%" and ProductType="1"
WMI filter for Windows 11 21H2select * from Win32_OperatingSystem where Version like "10.0.22000%" and ProductType="1"
WMI filter for Windows 10 All Versionsselect * from Win32_OperatingSystem where Version like "10.0.1%" and ProductType="1"
WMI filter for Windows 10 22H2select * from Win32_OperatingSystem where Version like "10.0.19045%" and ProductType="1"
WMI filter for Windows 10 21H2select * from Win32_OperatingSystem where Version like "10.0.19044%" and ProductType="1"
WMI filter for Windows 10 21H1select * from Win32_OperatingSystem where Version like "10.0.19043%" and ProductType="1"
WMI filter for Windows 10 20H2select * from Win32_OperatingSystem where Version like "10.0.19042%" and ProductType="1"
WMI filter for Windows 10 2004select * from Win32_OperatingSystem where Version like "10.0.19041%" and ProductType="1"
WMI filter for Windows 10 1909select * from Win32_OperatingSystem where Version like "10.0.18363%" and ProductType="1"
WMI filter for Windows 10 1903select * from Win32_OperatingSystem where Version like "10.0.18362%" and ProductType="1"
WMI filter for Windows 10 1809select * from Win32_OperatingSystem where Version like "10.0.17763%" and ProductType="1"
WMI filter for Windows 10 1803select * from Win32_OperatingSystem where Version like "10.0.17134%" and ProductType="1"
WMI filter for Windows 10 1709select * from Win32_OperatingSystem where Version like "10.0.16299%" and ProductType="1"
WMI filter for Windows 10 1703select * from Win32_OperatingSystem where Version like "10.0.15063%" and ProductType="1"
WMI filter for Windows 10 1607select * from Win32_OperatingSystem where Version like "10.0.14393%" and ProductType="1"
WMI filter for Windows 10 1511select * from Win32_OperatingSystem where Version like "10.0.10586%" and ProductType="1"
WMI filter for Windows 10 1507select * from Win32_OperatingSystem where Version like "10.0.10240%" and ProductType="1"
WMI filter for Windows 8 and 8.1select * from Win32_OperatingSystem where (Version like "6.3%" and ProductType="1") or (Version like "6.2%" and ProductType="1")
WMI filter for Windows 8.1select * from Win32_OperatingSystem where Version like "6.3%" and ProductType="1"
WMI filter for Windows 8select * from Win32_OperatingSystem where Version like "6.2%" and ProductType="1"
WMI filter for Windows 7select * from Win32_OperatingSystem where Version like "6.1%" and ProductType="1"
WMI filter for Windows Vistaselect * from Win32_OperatingSystem where Version like "6.0%" and ProductType="1"
WMI filter for Windows XPselect * from Win32_OperatingSystem where (Version like "5.1%" or Version like "5.2%") and ProductType="1"
WMI filter for Windows 2000select * from Win32_OperatingSystem where Version like "5.0%" and ProductType="1"
WMI filter for Windows Server 2022select * from Win32_OperatingSystem where Version like "10.0.20348%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2019select * from Win32_OperatingSystem where Version like "10.0.17763%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 1909select * from Win32_OperatingSystem where Version like "10.0.18363%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 1903select * from Win32_OperatingSystem where Version like "10.0.18362%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 1809select * from Win32_OperatingSystem where Version like "10.0.17134%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 1803select * from Win32_OperatingSystem where Version like "10.0.16299%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 1709select * from Win32_OperatingSystem where Version like "10.0.14393%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2016select * from Win32_OperatingSystem where Version like "10.0.14393%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2012 R2select * from Win32_OperatingSystem where Version like "6.3%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2012select * from Win32_OperatingSystem where Version like "6.2%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2008 R2select * from Win32_OperatingSystem where Version like "6.1%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2008select * from Win32_OperatingSystem where Version like "6.0%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2003 / R2select * from Win32_OperatingSystem where Version like "5.2%" and (ProductType="2" or ProductType="3")
WMI filter for Windows Server 2000select * from Win32_OperatingSystem where Version like "5.0%" and (ProductType="2" or ProductType="3")

A list of GPO WMI filter special

Hier eine Liste mit speziellen WMI Filtern zur gezielten Abfrage.

WMI filter for Domain Controllersselect * from Win32_OperatingSystem where ProductType="2"
WMI filter for Member Serversselect * from Win32_OperatingSystem where ProductType="3"
WMI filter for Standalone Serverselect * from Win32_ComputerSystem where DomainRole="2"
WMI filter for all Workstationsselect * from Win32_OperatingSystem where ProductType="1"
WMI filter for Domain Controllers and Memberselect * from Win32_OperatingSystem where ProductType="2" or ProductType="3"
WMI filter for Primary Domain Controller (PDC)select * from Win32_ComputerSystem where DomainRole="5"
WMI filter for Backup Domain Controllerselect * from Win32_ComputerSystem where DomainRole="4"
WMI filter for 2016-2019 DCsSELECT * FROM Win32_OperatingSystem WHERE Version like "10.%" AND ProductType="2"
WMI filter for 2016-2019 Member ServerSELECT * FROM Win32_OperatingSystem WHERE Version like "10.%" AND ProductType="3"
WMI filter for all 2016-2019 ServerSELECT * FROM Win32_OperatingSystem WHERE Version like "10.%" AND (ProductType="2" OR Producttype="3")
WMI filter for 64-bit OSselect * from Win32_Processor where AddressWidth = "64"
WMI filter for 32-bit OSselect * from Win32_Processor where AddressWidth = "32"
WMI filter for a specific nameselect * from Win32_ComputerSystem where Name like "computer-name"
WMI filter for hosts with the same starting nameselect * from Win32_ComputerSystem where Name like "ws%"
WMI filter for SYSTEM MODELselect * from Win32_ComputerSystem where Name like "%latitude%"
WMI filter for Desktopsselect * from Win32_ComputerSystem where PCSystemType="1" or PCSystemType="3"
WMI filter forR Laptopsselect * from Win32_ComputerSystem where PCSystemType="2"
WMI filter for Mondayselect DayOfWeek from Win32_LocalTime where DayOfWeek="1"
WMI filter for Tuesdayselect DayOfWeek from Win32_LocalTime where DayOfWeek="2"
WMI filter for Wednesdayselect DayOfWeek from Win32_LocalTime where DayOfWeek="3"
WMI filter for Thursdayselect DayOfWeek from Win32_LocalTime where DayOfWeek="4"
WMI filter for Fridayselect DayOfWeek from Win32_LocalTime where DayOfWeek="5"
WMI filter for Saturdayselect DayOfWeek from Win32_LocalTime where DayOfWeek="6"
WMI filter for Sundayselect DayOfWeek from Win32_LocalTime where DayOfWeek="7"
WMI filter for SSD based systemsselect * from MSFT_PhysicalDisk where MediaType="4"
WMI filter for HDD based systemsselect * from MSFT_PhysicalDisk where MediaType="3"
Any Windows Server – Non-Domain Controller – 64-bitselect * from Win32_OperatingSystem where (ProductType = "3") AND OSArchitecture = "64-bit"
Any Windows Server – Non- Domain Controller – 32-bitselect * from Win32_OperatingSystem where (ProductType = "3") AND NOT OSArchitecture = "64-bit"
Any Windows Server OS – 64-bitselect * from Win32_OperatingSystem where (ProductType = "2") OR (ProductType = "3") AND OSArchitecture = "64-bit"
Any Windows Server OS – 32-bitselect * from Win32_OperatingSystem where (ProductType = "2") OR (ProductType = "3") AND NOT OSArchitecture = "64-bit"
Any Windows Desktop OS – 64-bitselect * from Win32_OperatingSystem WHERE ProductType = "1" AND OSArchitecture = "64-bit"
Any Windows Desktop OS – 32-bitselect * from Win32_OperatingSystem WHERE ProductType = "1" AND NOT OSArchitecture = "64-bit"
Any Windows System with German OSselect * from Win32_OperatingSystem WHERE CountryCode = '49'
Any Windows System with German Keyboardselect * from Win32_Keyboard WHERE Layout = '00000407'
WMI filter with Network MAC Addressselect * from Win32_NetworkAdapter WHERE MACAddress LIKE '00:13:E8%'
Any Windows with Hotfixselect * from Win32_QuickFixEngineering where HotFixID = 'KB889101'
WMI filter require software programselect * from Win32Reg_AddRemovePrograms where displayname = "Mozilla Firefox" AND version = "121.0.1"
WMI filter is computer xyz or otherselect * from Win32_ComputerSystem WHERE not Name like "%XYZ%" AND not Name like "%Other%"

A list of GPO WMI filter options

System Types
ValueSystem Type
0Unspecified
1Desktop
2Mobile
3Workstation
4Enterprise Server
5Small Office and Home Office (SOHO) Server
6Appliance PC
7Performance Server
8Maximum
Product Types
ValueVersion
1Client versions of Windows
2Server versions of Windows that are operating as a domain controller
3Server versions of Windows that are not operating as a domain controller (typically referred to as member servers)