What's the best way to shut down Windows 2000 Server Terminal Services?

John Savill

April 28, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. For Win2K and newer OSs (including Windows .NET Standard Server--Win.NET Standard Server), selecting Shut Down from the Start menu will shut down Terminal Services, but will also terminate all user connections. A better way to shut down Terminal Services is to use the tsshutdn.exe command. The command syntax, which is the same for Win.NET Standard Server and Win2K, is

 tsshutdn [wait_time] [/server:servername] [/reboot] [/powerdown] [/delay:logoffdelay] [/v] 

where:

wait_time

Specifies the number of seconds to wait after user notification before terminating all user sessions (the default value is 60).

/server:servername

Specifies which server you want to shut down (the value defaults to the current server).

/reboot

Specifies that you want to reboot the server after the OS terminates all user sessions.

/powerdown

Specifies that you want to power down the server after the OS terminates all user sessions.

/delay:logoffdelay

Specifies the number of seconds to wait wait after logging off all connected sessions before performing the reboot or shutdown action (the default value is 30).

/v

Turns on verbose mode, which displays detailed information about actions that are being performed.

For example, to power down a remote server named server1 in 5 minutes and turn on verbose mode, type

 tsshutdn 300 /server:server1 /powerdown /v 

at the command prompt.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like