JSI Tip 5177. How do I shutdown a Windows 2000 Terminal Server?
April 15, 2002
If you simply shutdown a Windows 2000 Terminal Server, users are NOT notifiedthat 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: ] /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: | 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.
About the Author
You May Also Like