CHECKRAS indicates how many Microsoft Remote Access Service (RAS) connections are currently open. When CHECKRAS is run, it returns one of the following return codes:
0 = No RAS connections
1 = 1 or more RAS connections
These return codes can be used when CHECKRAS is used in a batch file. For example, CHECKRAS can be used as part of the network logon script to detect whether the user is logged on using RAS. The usual SMS logon processes, such as inventory collection, can then be skipped if the connection is via RAS (that is, if the return code is 1). Such a logon script would include the following lines:
:CHECKRAS
CHECKRAS > nul
if errorlevel 1 goto END
REM normal logon steps here ...
:END
RAS must be installed on any computer that runs CHECKRAS.
Alpha, x86
CHECKRAS.EXE
RASAPI32.DLL
Checkras