I'm trying to add a condition for a command line, which should only be run if the condition is met. I'm doing this by using a WMI Query;
Select * From Win32_NetworkAdapterConfiguration Where DefaultIPGateway="192.168.1.1"
So, if the gateway for this deployment has got 192.168.1.1 it should run a command adding a registry setting, if it does not meet the condition it will skip it.
- I already have a similar command working that queries WMI for the hostname information. If its hostname begins with XXX%, (the % is a wildcard) it will deploy the command, else it will skip it.
- If its a certain gateway it should run the command
- This is already a live Task Sequence, i'm just trying to add this condition to have 1 big sequence
Any help is welcome. Thanks