Use WMI Filter To Apply Group Policy To IP Subnet

Using a WMI filter, you can apply a group policy based on the client’s TCP/IP subnet.

1. In Group Policy Management, right-click the WMI Filters folder and click New.

2. Name your new WMI policy, give it a description if you wish.

3. Click the Add button, leave the Namespace at the default setting “root\CIMv2” and enter the following within in the Query text box (replacing 10.1.1.% with your specific subnet):
Select * FROM Win32_IP4RouteTable
WHERE ((Mask='255.255.255.255' AND NextHop='127.0.0.1')
AND (Destination Like '10.1.1.%')

windows-active-directory-group-policy-wmi-filter-subnet

4. That’s it!

If you want to have the group policy apply to multiple client subnets, use this instead (again, replacing 10.1.1.% and 10.1.2.% and 10.1.3.% and so on):
Select * FROM Win32_IP4RouteTable
WHERE ((Mask='255.255.255.255' AND NextHop='127.0.0.1')
AND (Destination Like '10.1.1.%' OR Destination Like '10.1.2.%' OR Destination Like '10.1.3.%'))

Get The Roo In Your Inbox

Receive The Roo Report only when new content is posted. We promise the Roo will be on his best behavior!
Sell Art Online

Please share your thoughts