When my Win9X clients login from home via RAS they execute the Domain Login Script (LS). I would to bypass when RAS connection is detected. I have found one way of doing this but cannot get it to work and I was hoping for you assistance. The LS should check a Registry entry on the Win9x client and if the entry is 1 then RAS client, if 0 then not RAS client.
***Copy this to a Batch file ***
:WIN9x
ECHO YOU ARE RUNNING WINDOWS 9x/ME
$IS_RAS=ReadValue(“HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess”,”Remote Connection”)
If $IS_RAS=01000000 goto YESRAS endif
Goto :END
:YESRAS
echo YesRas
:END
Echo END !
My Q… The ReadValue command does not read the registry and produce a result that I can use to test and move on down the LS.
Any Ideas would be appreciated.