As you know, Windows Management Instrumentation (WMI) filters allow you to dynamically determine the scope of Group Policy objects (GPOs) based on attributes of the target computer. I started seeing many questions about verifying these WMI Filters prior to implementing it. You can use the wbemtest tool to verify the result.
More info about wbemtest tool - http://technet.microsoft.com/en-us/library/ee692770.aspx
In this example my goal is to verify an IP address using a WMI query.
1. Open wbemtest tool (Run -> type wbemtest)
2. On the Windows Management Instrumentation Tester window, select Connect.
Note: For the local machine, click Connect with correct Namespace. For a remote computer, use the \\Remte\root\cimv2 format.
3. Select Query button.
4. Enter your query string in the Enter Query box and click Apply.
Note: In the below example, I am searching for 10.15.2.X IP address in the IP V4 Windows Routing Table.
When a GPO that is linked to a WMI filter is applied on the target computer, the filter is evaluated on the target computer. If the WMI filter evaluates to false, the GPO is not applied (except if the client computer is running Windows 2000, in which case the filter is ignored and the GPO is always applied). If the WMI filter evaluates to true, the GPO is applied.
As you can see in the following screenshot, the select * from Win32_IP4RouteTable Where Name Like "192.168.10.%" query returns a True value.
In this example, select * from Win32_IP4RouteTable Where Name Like "192.168.10.%" query returns a False value.