
where Version like "6.1%" or Version like "6.2%" To specify multiple versions, combine them with or, as shown in the following. For Windows 11, Windows 10, and Windows Server 2016, use "10.%". To set a filter for just Windows 8 and Windows Server 2012, use "6.2%". This query will return true for devices running at least Windows Vista and Windows Server 2008. In the Query text box, type: select * from Win32_OperatingSystem where Version like "6.%"

Leave the Namespace value set to root\CIMv2. For example, if the filter excludes domain controllers, you might consider stating that in the description. In the Description text box, type a description for the WMI filter. Check to see if your organization has a naming convention. Be sure to use a name that clearly indicates the purpose of the filter. In the Name text box, type the name of the WMI filter. In the navigation pane, expand Forest: YourForestName, expand Domains, expand YourDomainName, and then select WMI Filters. Open the Group Policy Management console. To create a WMI filter that queries for a specified version of Windows To complete these procedures, you must be a member of the Domain Administrators group, or otherwise be delegated permissions to modify the GPOs.įirst, create the WMI filter and configure it to look for a specified version (or versions) of the Windows operating system.


Although you can create a separate membership group for each GPO, you would then have to manage the memberships of the different groups. To make sure that each GPO associated with a group can only be applied to devices running the correct version of Windows, use the Group Policy Management MMC snap-in to create and assign WMI filters to the GPO.
