Answered by:
wmi filter for specific IP network

Question
-
I would like to create a WMI filter that filter certain IP networks, e.g. 192.168.1.*, 192.168.2.*. I used the following query statement and realized that WQL doesn't support property IPaddress in win32_networkadapterconfiguration as it is an array. Can someone advice what alternative I have in this scenario?
Select * from win32_networkadapterconfiguration where IPaddress = "192.168.1.%" or IPaddress = "192.168.2.%"
Thanks
Tuesday, October 11, 2011 10:06 PM
Answers
-
Hi,
Actually you don't need a 2008 DC to use item level targeting, just a single Windows Vista/2008 or later system to manage the GPO. However, item level targeting will only work for a group policy preference setting. What type of settings are you trying to configure?
Another option is to use site based GPOs. If you configure your AD sites to match your subnets, you can link a group policy to an AD site using GPMC.
Finally, if you must use WMI filters, try using the routing table as described here (it's not very simple or intuitive): http://waynes-world-it.blogspot.com/2008/03/wmi-filter-for-subnet-filtered-group.html.
Thanks,
Guy
- Marked as answer by Elytis Cheng Monday, October 17, 2011 1:47 AM
Wednesday, October 12, 2011 5:18 PM
All replies
-
If you have atleast one 2008 DC, you can use item lebel targetting.
see the below link.
Best regards Biswajit Biswas Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin- Proposed as answer by Elytis Cheng Wednesday, October 12, 2011 10:18 AM
Wednesday, October 12, 2011 6:33 AM -
We are still on 2003 domain, can't use the lebel targeting feature.
Wednesday, October 12, 2011 4:53 PM -
Hi,
Actually you don't need a 2008 DC to use item level targeting, just a single Windows Vista/2008 or later system to manage the GPO. However, item level targeting will only work for a group policy preference setting. What type of settings are you trying to configure?
Another option is to use site based GPOs. If you configure your AD sites to match your subnets, you can link a group policy to an AD site using GPMC.
Finally, if you must use WMI filters, try using the routing table as described here (it's not very simple or intuitive): http://waynes-world-it.blogspot.com/2008/03/wmi-filter-for-subnet-filtered-group.html.
Thanks,
Guy
- Marked as answer by Elytis Cheng Monday, October 17, 2011 1:47 AM
Wednesday, October 12, 2011 5:18 PM