The script below doesn't work at all. I want the IP address to look at the 3rd octet, and if it's 10, then the user is on the local domain and that script should run. Alternatively, if remote then the other script runs. I am logging in locally and nothing!
Thanks,
Jim

$address=@IPADDRESS0
$subnet=SubStr($address,0,2)

If $subnet="10" $NETWORK=LOCAL

Else $NETWORK=REMOTE

EndIf

If $NETWORK=LOCAL
$ld = "@lserver\netlogon"
CALL "$ld\local.kix"

EndIf

If $NETWORK=REMOTE
$ld = "@lserver\netlogon"
CALL "$ld\remote.kix"
EndIf