|
Hello! I am new to the post, so please forgive me in advance if I forget something. I am using a script to prevent concurrent logins on an NT 4 network. I have limited my sample user to 3 logins on his homeshare. I would like the script to display a message box and then automatically log the user out if they do not have a mapped homeshare, which he won't after 3 logins. I can log in after three times with no homeshare, but I do not get a message box and it doesn't automatically log me out. Here is the script:
set kxrpc=\\test\netlogon use h: @homeshr if @error<>0 messagebox ("Please log off all other workstations. Thank you.","",16) run "\\pdc\netlogon\wcontrol.exe" ;run "c:\windows\system\wcontrol" endif
Can anyone tell me what I am doing wrong?
Thank you for any help or suggestions.
|