B Brett Jul 29, 2003 #1 Can a user be logged off using a batch script. I would prefer to log off the user instead of restarting the computer.
Can a user be logged off using a batch script. I would prefer to log off the user instead of restarting the computer.
H Herb Martin Jul 29, 2003 #2 There are two Microsoft "Logoff.exe" commands available. (You can probably find others by searching software download sites.) Logoff.exe in %SystemRoot%\System32 is likely from Terminal Server and only logs of terminal server users -- it's about 16 KB Logoff from the Resource Kit (might be downloadable from MS Win2000 downloads) does this for the current user. It's about 62 KB. In both cases it is safe to request help by typing: Logoff /? Likely there is a built in way by using RunDLL32 or something...we can await another response from someone who knows....
There are two Microsoft "Logoff.exe" commands available. (You can probably find others by searching software download sites.) Logoff.exe in %SystemRoot%\System32 is likely from Terminal Server and only logs of terminal server users -- it's about 16 KB Logoff from the Resource Kit (might be downloadable from MS Win2000 downloads) does this for the current user. It's about 62 KB. In both cases it is safe to request help by typing: Logoff /? Likely there is a built in way by using RunDLL32 or something...we can await another response from someone who knows....