IP Address Filtering WMI
Kerguelen
-
Kerguelen -
Kerguelen -
Hello,
I am looking for the WMI query that would allow me to filter by an IP address.
I need the computers in the active IP range A to apply this GPO, while other IP addresses will have a different GPO.
Can someone help me?
Sincerely
I am looking for the WMI query that would allow me to filter by an IP address.
I need the computers in the active IP range A to apply this GPO, while other IP addresses will have a different GPO.
Can someone help me?
Sincerely
4 answers
-
Hello,
the most efficient way is to create groups of computers based on their IP (VLAN) and then filter with these groups,
however, if your computers often switch from one VLAN to another (e.g. laptops), this will indeed pose a problem,
you can consult this topic for information:
https://community.spiceworks.com/topic/2136706-problem-applying-gpo-with-wmi-filter
Also, WMI queries are known for their slowness,
Best regards, -
VPN: Does the VPN connection occur without user intervention? For example, at startup or as soon as a session is opened.
-
Hors site + VPN, the laptop connects to the internet through a private ISP, like the user's router... If so, it will have 2 active IPs, right?
-
Yes, it should work... (if the VPN connection is not automatic) if lan gpo_1 otherwise gpo_2
Now we just need to test the Spiceworks solution :) (especially test the command line query first)
Good luck,