tsshutdn: Shut down a server in a controlled manner.
The command: "tsshutdn" is on Windows 11, 10, .. not available
The examples for the command "tsshutdn"
The tsshutdn command was used in older versions of Windows to shut down a remote computer or server. Please note that this command has been replaced by the "shutdown"
command in newer versions of Windows.
Here are examples of using the "shutdown"
Example 1: Shutting down a local computer:
shutdown /s /f /t 0
: Shut down the system.
: Forces running applications to close.
- "/t 0"
: Sets the delay time before shutdown to 0 seconds.
For the "TSSHUTDN"
command to appear on a Windows XP system. This command was used to shut down a terminal server or remote desktop server in a controlled manner.
Here is a quick summary of the options available:
- `TSSHUTDN [wait time]`
: The command is used to shut down the server.
: Specifies the server to shut down (default is the current server).
: Restarts the server after all user sessions have completed.
: Prepares the server for power off.
: Sets the waiting time after which all connected sessions are logged out (default is 30 seconds).
: Displays information about the functions performed.
If you want to use the command to shut down the current server while setting a wait time of, for example, 60 seconds, you could use the following command:
Please note that this command is specifically intended for older versions of Windows such as Windows XP. In modern versions of Windows, the "shutdown"
command is usually used, as explained previously.
"tsshutdn" Excerpt from Microsoft Windows Help
Microsoft Windows XP [Version 5.1.2600]
(c) Copyright 1985-2001 Microsoft Corp.
Shut down a server in a controlled manner.
TSSHUTDN [wait_time] [/SERVER:servername] [/REBOOT] [/POWERDOWN]
wait_time Seconds to wait after user notification before
terminating all user sessions (default is 60).
/SERVER:servername The server to shut down (default is current).
/REBOOT Reboot the server after user sessions are terminated.
/POWERDOWN The server will prepare for powering off.
/DELAY:logoffdelay Seconds to wait after logging off all connected
sessions (default is 30).
/V Display information about actions being performed.
Important information, tips for the "tsshutdn" command
Special care should be taken when using the TSSHUTDN command on the Windows command line. This command is intended to shut down a terminal server or remote desktop server in a controlled manner and requires careful planning, especially on systems where users are actively working.
Before applying "TSSHUTDN"
, it is advisable to ensure that all users have been properly notified and have saved their work. Unplanned shutdowns could result in data loss or work interruptions.
Finally, it should be noted that the command is specific to older versions of Windows such as Windows XP. In modern Windows environments, it is recommended to use the shutdown command, which provides advanced functionality and is usually preferred.
For newer versions of Windows and in modern environments, there are alternatives to the TSSHUTDN command. Here are some of the most common methods:
Example 1: Shutdown command:
The general "shutdown"
command provides advanced functionality and can be used to shut down or restart computers. Here's a simple one
shutdown /s /f /t 60
: Shut down the system.
: Forces all applications to close.
- "/t 60"
: Sets a waiting time of 60 seconds.
Example 2: Task Scheduler:
You can use task scheduling to schedule shutdowns. Create a new task, set the trigger (e.g. a specific time) and use the Start Program action to execute shutdown with the desired parameters.
Example 3: PowerShell command:
PowerShell also offers options for shutting down the system. Here one
Stop computer force
This command forces the computer to shut down immediately.
Example 4: Remote Desktop Services Manager:
In remote desktop services environments, the Remote Desktop Services Manager can be used to manage user sessions and, if necessary, log off or shut down the server.
It is important to note that different methods may be preferred depending on the specific requirements and system environment. Before performing system operations such as shutdown, it is advisable to ensure that all users have been notified and their work is saved to avoid data loss.