Microsoft KB Archive/320188

= HOW TO: Use the TSSHUTDN Command to Shut Down a Terminal Server in Windows 2000 Terminal Services =

Article ID: 320188

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q320188



IN THIS TASK
SUMMARY
 * Overview of the TSSHUTDN Command
 * Examples

REFERENCES



SUMMARY
This step-by-step article describes how to use the tsshutdn command to shut down a computer that is running Windows 2000 Terminal Services.

Use the tsshutdn command to shut down and restart a Terminal server. If you do so, users are notified that their sessions will end and the server is shut down in a controlled manner. Microsoft recommends that you use the tsshutdn command instead of the Shut Down option on the Start menu to shut down a Terminal server. If you use the Shut Down option on the Start menu, users are not notified before their sessions are ended, and they may experience data loss on the client computer.

NOTE: You must be the administrator or a member of the Administrators group to use tsshutdn.

back to the top

Overview of the TSSHUTDN Command
The tsshutdn command uses the following syntax:

tsshutdn [ /server: ] /reboot /powerdown /delay:  /v

You can use the following parameters with the tsshutdn command:
 *  : Use this parameter to specify the time period to wait (after users are notified) after which users are logged off from their sessions. The default setting is 60 seconds.
 * /server: : Use this parameter to specify the Terminal server that you want to shut down. If you omit this parameter, the current Terminal server is shut down.
 * /reboot: Use this parameter to shut down and restart the Terminal server after client sessions are ended.
 * /powerdown: Use this parameter to turn off the Terminal server (if the computer supports Advanced Power Management).
 * /delay: : Use this parameter to specify the time period to wait (after users are logged off from their sessions) after which all processes end and the Terminal server shuts down. The default setting is 30 seconds.
 * /v: Use this parameter to display information about the actions that are performed if you run this command.

back to the top

Examples
The following examples describe how to use tsshutdn to shut down a Terminal server:  To end all client sessions 60 seconds after notification, and then shut down the current terminal server 30 seconds after all of the users are logged off, type the following command at the command prompt, and then press ENTER:

tsshutdn /v

Users receive the following message:

System is shutting down in 60 seconds.

 To end all client sessions 5 minutes after notification, and then shut down and restart the Terminal server 1 minute after all of the users are logged off, type the following command at the command prompt, and then press ENTER:

tsshutdn 300 /reboot /delay:60 /v

Users receive the following message:

System is shutting down in 300 seconds.

 To end all client sessions 2 minutes after notification, and then shut down and restart a Terminal server named &quot;Server8&quot; 20 seconds after all of the users are logged off, type the following command at the command prompt, and then press ENTER:

tsshutdn 120 /server:server8 /delay:20 /v

Users receive the following message:

System is shutting down in 120 seconds.



back to the top

