Problems with CHECKRAS.EXE
Problems with CHECKRAS.EXE
(OP)
We use checkras in our logon scripts (we have 60+ mobile users and 150+ static, NT4.0 SP4 or 5)
Most of the time, it works fine.
Sometimes, checkras hangs, occasionally for 10 or 15 minutes but mostly forever( until shutdown). Occasionally, the machine is unable to shutdown and we need to go for the power switch.
I have not found any reliable solution to this problem - sometimes re-application of the service pack fixes it, other times deleting the user's profile does the trick (nasty one, this!)
Has anyone any experience with this problem, or a better solution for detecting RAS logins?
Regards
Alex
Most of the time, it works fine.
Sometimes, checkras hangs, occasionally for 10 or 15 minutes but mostly forever( until shutdown). Occasionally, the machine is unable to shutdown and we need to go for the power switch.
I have not found any reliable solution to this problem - sometimes re-application of the service pack fixes it, other times deleting the user's profile does the trick (nasty one, this!)
Has anyone any experience with this problem, or a better solution for detecting RAS logins?
Regards
Alex
RE: Problems with CHECKRAS.EXE
IF @RAS > "0" GOTO END
ELSE
GOTO Beginning of script
ENDIF
:BEGINNING of SCRIPT
; your usual script
:END
; RAS user, so exit the script
You should post this question on Brainbuzz under the scripts forum. Here's the link for Kixtart
http://networking.brainbuzz.com/boards/viewboardmessages.asp,b~S2B92
Alternatively, if you wish to stay with NT shell scripting, you could use the CHOICE command and ask them if they are dialing in.
CHOICE /c:YN Are you dialing in?
IF ERRORLEVEL 1 GOTO rasuser
IF ERRORLEVEL 2 GOTO begin
:rasuser
; dial up user abort script
:begin
;normal script here
I wouldn't recommend this way because they will most likely always say Yes to avoid running the script, but it works.
Hope it helped