Other Useful Terminal Services Commands

There are a few other useful commands for working with Terminal Services, including the following:

  • MSG [UserName | SessionName | SessionId | *] [/Server:ServerName] [Message]—Use MSG to send a console message to users by user name, session name, and session ID. Use the asterisk wildcard (*) to send the same message to all sessions on a designated server.

  • TSKILL ProcessId | ProcessName [/Server:ServerName] [/ID:SessionId | /a] [/v]—Use TSKILL to end a process using the process ID or process name. A process can be shut down for a particular session ID using /ID:SessionID or for all sessions running the process by using the option /a.

  • TSSHUTDN [SecondsToWait] [/Server:ServerName] [/Reboot] [/Powerdown] [/ Delay:LogoffDelay] [/v]—Use TSSHUTDN to remotely shut down a terminal server. By default, TSSHUTDN logs off all connected user sessions, waits 30 seconds, and then shuts down. You can set a different delay using the /Delay option. The /Powerdown option allows a server to prepare for powering off; only use this if you aren't rebooting. /Reboot sets the server to restart after shutting down.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset