TSSHUTDN Windows Command Guide
The Windows tsshutdn command is used to shut down or restart a terminal server. This command can be run from the command prompt and allows administrators to manage Terminal Services sessions effectively. By specifying different parameters, users can customize the behavior of the shutdown process, such as setting a delay before the shutdown occurs or specifying the message to be displayed to users. Understanding how to use the tsshutdn command can help administrators maintain control over their terminal server environment and ensure that sessions are managed efficiently.
TSSHUTDN Syntax:
Options:
Option | Description |
---|---|
/? | Displays help for the command |
/help | Displays help for the command |
/delay | Sets the number of seconds to wait before taking action |
/reboot | Shuts down and reboots the system |
/powerdown | Shuts down the system (default if no option specified) |
/logoff | Logs off the current user without shutting down the system |
Parameters:
There are no specific parameters for the tsshutdn command.
TSSHUTDN Command Samples:
Restart the Local Computer Immediately
Initiates an immediate restart on the local computer without any prior warning.
Shutdown a Remote Computer with a Specified Message
Shuts down a remote computer named ‘RemoteComputerName’ with a specified message and a 10-minute countdown.
Log Off the Current User and Force All Applications to Close
Logs off the current user, forces all applications to close, and displays a warning dialog.
Display Help Information for the TSSHUTDN Command
Shows detailed information about the usage options and parameters of the tsshutdn command.
Abort a Previously Initiated Shutdown
Cancels a previously scheduled shutdown or restart operation on the system.
Restart the Local Computer and Specify a Warning Time
Initiates a system restart on the local computer with a warning message displayed 10 minutes before the restart.
Schedule a Shutdown of the Local Computer at a Specific Time
Schedules a shutdown of the local computer after a 30-minute delay.
TSSHUTDN FAQ:
{Questions}
How do I use tsshutdn in Windows?
To use the tsshutdn command in Windows, execute the following command:
What is the purpose of the tsshutdn command in Windows?
The tsshutdn command is used to shut down or reboot a terminal server remotely.
How can I schedule a system shutdown using tsshutdn?
To schedule a system shutdown with tsshutdn with a specific delay and message, use the following command:
Can tsshutdn be used to log off all users connected to a terminal server?
Yes, you can use the tsshutdn command with the “—all” parameter to log off all users connected to the terminal server. Here is an example:
How can I force users to log off their sessions with tsshutdn?
To force users to log off their sessions using tsshutdn, you can use the “—poweroff” parameter. Here is an example of the command:
Is it possible to cancel a scheduled shutdown with tsshutdn?
Yes, you can cancel a scheduled shutdown by using the following command:
Applications of the TSSHUTDN Command
- Shut down a terminal server
- Log off all connected users
- Restart the terminal server