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

Article translations Article translations
Article ID: 320188 - View products that this article applies to.
This article was previously published under Q320188
Notice
This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.
Notice
This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.
Expand all | Collapse all

On This Page

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.

Overview of the TSSHUTDN Command

The tsshutdn command uses the following syntax:
tsshutdnwait_time [ /server:server_name] /reboot /powerdown /delay:log_off_delay /v
You can use the following parameters with the tsshutdn command:
  • wait_time: 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:server_name: 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:log_off_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.

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 "Server8" 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.

REFERENCES

For more information about the tsshutdn command, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/cc725766.aspx

Properties

Article ID: 320188 - Last Review: October 30, 2006 - Revision: 3.4
APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbhowto kbhowtomaster KB320188

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com