Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Apply Group policy to only specific IP subnets using WMI filtering.

$
0
0

There is a group policy I want to apply a group of specific IP subnets and not to all. To achieve this, I created a below WMI filter query for a particular subnet, attached it to a GPO and this is working fine. 

select * from Win32_IP4RouteTable where Name like "10.x.50.%"

My question is, I have list of specific subnets (for example below list), so how to fit all those subnets in this single WMI query. 

10.x.50.x
10.x.60.x
10.x.70.x
10.x.80.x
10.x.90.x




Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>