quote:
If $DefaultGateway = "169.112.1.1" AND $SubnetMask = "255.255.255.0"
I tried that before and it doesn't work. I think it may have something to do with the fact that the value is REG_MULTI_SZ.
If I run this script...
$DefaultGateway = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip", "DefaultGateway")
$SubnetMask = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip", "SubnetMask")
$lmhosts = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters", "EnableLMHOSTS")
If @ERROR = 0
? "Default Gateway: $DefaultGateway"
? "SubnetMask: $SubnetMask"
Endif

I get this output (notice the "pipe" at the end of the value...
Default Gateway: 169.112.1.2|
SubnetMask: 255.255.255.0|

If I run what you suggested...
$DefaultGateway = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip", "DefaultGateway")
$SubnetMask = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\El90x1\Parameters\Tcpip", "SubnetMask")
If @ERROR = 0
If $DefaultGateway = "169.112.1.1" AND $SubnetMask = "255.255.255.0"
? "Default Gateway: $DefaultGateway"
? "SubnetMask: $SubnetMask"
EndIf
Endif

I get no output.