Skip navigation

JSI Tip 5177. How do I shutdown a Windows 2000 Terminal Server?

If you simply shutdown a Windows 2000 Terminal Server, users are NOT notified that their sessions will end.

The proper ways to shutdown a Windows 2000 Terminal Server is to use the tsshutdn command.

The syntax of the tsshutdn commands is:

tsshutdn wait_time \[ /server: <Server_Name> \] /reboot /powerdown /delay: log_off_delay /v

where:

Parameter Description
wait_time How long to wait after the user is notified before logging the user off. The default is 60 seconds.
/server: <Server_Name>     Specifies which Terminal Server to shutdown. The default is the local Terminal Server.
/reboot Shutdown and restart the Terminal Server. This is the default action.
/powerdown Shutdown and power off the Terminal Server, if the computer supports APM (Advanced Power Management).
/delay: log_off_delay Specifies how long after the users are logged off to wait before beginning the shutdown. The default is 30 seconds.
/v Displays verbose status messages.

Examples

To wait 60 seconds after notifying all clients, shutting down and restarting the local Terminal Server 30 seconds after the clients are logged off:

tsshtudown

        or

tsshtudown /v

NOTE: The users will receive System is shutting down in 60 seconds.

To wait 5 minutes after notifying all clients, shutting down and restarting the local Terminal Server 1 minute after the clients are logged off:

tsshutdn 300 /reboot /delay:60 /v

NOTE: The users will receive System is shutting down in 300 seconds.

To wait 2 minutes after notifying all clients of JSI002, shutting down and restarting the Terminal Server 1 minute after the clients are logged off:

tsshutdn 120 /server:JSI002 /delay:60 /v 

NOTE: The users will receive System is shutting down in 120 seconds.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish