How to Create a Windows 10 WMI Filters in Group Policy

How to Create a Windows 10 WMI Filters in Group Policy

In this blog post, I’ll show you How to Create a Windows 10 WMI Filters in Group Policy and apply it.

Group Policy WMI filters were introduced with Windows XP, and are supported on all Windows Server editions since Server 2003.

When a GPO that is linked to a WMI filter is applied to the target computer, the filter is evaluated on the target computer. If the WMI filter evaluates to false, the GPO is not applied.

How to Import and Export WMI Filters.

WMI Filters allows us to select only computers that meet our chosen criteria.  Naturally, the Group Policy will only apply to the objects that match the filter.

For example, In our case, we want to apply the filter to Windows 10 machines only.

Creating a WMI Filter

To create a WMI Filter we use the Group Policy Management Console

Group Policy Management Console.
Group Policy Management Console.

In the console right click on WMI Filters and Select New…

Fill in the details as shown below, Make sure you add a good description to the filter.

select * from Win32_OperatingSystem where Version like "10.%" and ProductType="1"

Click on to Save

WMI Query.
WMI Query.
Applying the Filter

To apply the filter find the GPO you would like to apply it to and set the WMI filter settings in the bottom of the screen by selecting the Filter.

Remember, You could only apply one filter per GPO.

Confirm the action by clicking Yes

To check If the filter has applied to a machine run the two cmdlets ( the first will force and GPO update and the second will show which GPO was applied to the machine)

Gpudate /force
Gpresult /r


WMI Filters are one of the most powerful features In Group Policy and the Windows ecosystem because It allows us to be very specific with our deployments.