How to Create an Operating System WMI Filter

Post to Twitter Post to Facebook Post to StumbleUpon

There’s an important something that you need to know when targeting a group policy to specific computers and that is, that not everything is in the same place on every version of the operating system. So if you want to place a group policy that sets a system setting then you’ll need to use a WMI filter so the right setting can go to the right OS version.

Here’s how to do it.

BTW, this document is one of the ones coming in our updated Ransomware Prevention Kit. We use WMI filters to set .exe blocks of specific locations and those locations are different depending on which Windows OS version you are running.

WMI Filters

These WMI filters allow you to target your group policies to computers running a specific operating system.

To create a new WMI filter open Group Policy and then…


Right click on WMI Filters and select New. Give your new WMI filter a name and description. Then press Add and enter the string below. Make one new filter for each operating system.

1 Windows 10 and Above

select * from Win32_OperatingSystem where Version like “10.%”

2 Windows 7, 8, 8.1

select * from Win32_OperatingSystem where Version >= “6.1”

3 Windows Vista

select * from Win32_OperatingSystem Where Version>=’6.0.6000′

4 Windows XP

select * from Win32_OperatingSystem Where Version>=’5.1.2600′ and ‘6.0.6000’>Version and ServicePackMajorVersion>=2


Not a Third Tier customer yet? Let me introduce:  We’re Third Tier. We provide advanced Third Tier support for IT Professionals and MicroStaffing for IT consulting firms. Come on over, create an account (no charge) and follow our social media locations.

Third Tier Get Support BlogFeed Blog Twitter Twitter Facebook Facebook LinkedIn LinkedIN

Leave a comment

Your email address will not be published. Required fields are marked *

This blog is kept spam free by WP-SpamFree.