Remotely shut down or reboot a terminal server. If the computer supports software control of AC power this command can be used to power off the server.
Syntax TSSHUTDN [WaitTime] [/server:ServerName] [/reboot] [/powerdown] [/delay:LogOffDelay] [/v] Key WaitTime An amount of time (in seconds) to wait after notifying users before logging off all users from their sessions. Default = 60 seconds. /server The terminal server to shut down. If unspecified, the current terminal server is shut down. /reboot Reboot the terminal server after user sessions are ended. /powerdown Turn off the terminal server if the computer supports software control of AC power. /delay The amount of time to wait after logging off users from their sessions, before ending all processes and shutting down the terminal server. Default = 30 seconds. /v Display verbose information about the actions being performed. /? Display help.
You must have administrative privileges run tsshutdn.
Using Start Menu | ShutDown is not recommended for shutting down a terminal server as that method does not notify users before ending their sessions.
All connected sessions are notified. Sessions that have applications with open files will prompt the user to save the files. After initiating the logoff command, tsshutdn waits a specified interval, before ending all processes.
Tsshutdn does not reboot the terminal server unless the /reboot option is specified.
End all client sessions 60 seconds after notification, and then 30 seconds after all the users are logged off, shutdown the current terminal server:
End all client sessions 5 minutes after notification, and then 1 minute after all the users are logged off, shutdown and restart the terminal server:
TSSHUTDN 300 /reboot /delay:60 /v
On the terminal server named "Server64", end all client sessions 2 minutes after notification, and then 20 seconds after all the users are logged off, shutdown and restart the terminal server:
TSSHUTDN 120 /server:server64 /delay:20 /v
TsShutDn is available only on XP and Windows 2003 (32 or 64 bit) as part of a Terminal Services install.
“Perhaps I'm old and tired, but I always think that the chances of finding out what really is going on are so absurdly remote that the only thing to do is to say hang the sense of it and just keep yourself occupied” ~ Douglas Adams
PsShutdown - SysInternals command line tool
SHUTDOWN - Shutdown the computer