Shutdown.exe command line using -l -t <nn> doesn't work

  • Thread starter Thread starter IanB
  • Start date Start date
I

IanB

The following logs off the user immediately, instead of after 120
seconds as I'd hoped:

%windir%\System32\SHUTDOWN.exe -l -t 120

Using Windows XP Pro w/SP 2. Am I not understanding the "-t " option
correctly? Doing something else wrong?

Thanks.
 
IanB said:
The following logs off the user immediately, instead of after 120
seconds as I'd hoped:

%windir%\System32\SHUTDOWN.exe -l -t 120

Using Windows XP Pro w/SP 2. Am I not understanding the "-t " option
correctly? Doing something else wrong?

The -l is for logoff.. the -t is the time until shutdown/restart - not
logoff.

If you tell shutdown to logoff the user, it does that.. but shutdowns main
purpose is ... shutdown and restart, so all other command switches have to
do with that.
 
Back
Top