TS Windows 2000/2003: Essential command line utilities
Posted by bartvdw on March 11, 2008
I don’t work that much on Terminal Servers, but it happens. Sometimes it has been that long I need to think about the essential command line tools… Here they are!
| Command | Meaning |
| change logon | Used to disable, enable, or check the status of logons |
| change port | Modify DOS com ports or query for the status of ports |
| change user | Change .ini file mapping for the current user. Applicable change user parameters are install, execute, and query |
| cprofile | Remove user’s profile file associations |
| flattemp | Enable or disable temporary flat directories |
| logoff | End a client session |
| msg | Send a message to a client |
| mstsc | Displays the Remote Desktop Connection to establish a connection with a Terminal Server |
| query process | Display process information |
| query session | Display terminal services session information |
| query termserver | Display terminal server list |
| query user | Display logged on user list with information. Like “who” in UNIX |
| register | Register a program |
| reset session | Reset or delete a terminal session |
| shadow | Monitor or remotely control a terminal service session |
| tscon | Start a Terminal Services session |
| tsdiscon | End a Terminal Services session |
| tskill | Terminate a Terminal Server process |
| tsprof | Change a user profile path or copy user information |
| tsshutdn | Shut down a terminal server |
HOW TO: Use the RESET SESSION Command to Reset a Session in Windows 2000 Terminal Services
http://support.microsoft.com/kb/320192
HOW TO: Use the TSSHUTDN Command to Shut Down a Terminal Server in Windows 2000 Terminal Services
http://support.microsoft.com/kb/320188
HOW TO: Clean Profiles By Using the Cprofile Command in Terminal Services
http://support.microsoft.com/kb/320186
HOW TO: Disconnect a Session by Using the TSDISCON Command in Windows 2000 Terminal Services
http://support.microsoft.com/kb/321705
HOW TO: Use the TSKILL Command to End Processes in Windows 2000 Terminal Services
http://support.microsoft.com/kb/320052
HOW TO: Turn Off Logons to a Terminal Server By Using the CHANGE LOGON Command in Windows 2000
http://support.microsoft.com/kb/320183
HOW TO: Register Programs to Run in a Global Context by Using the REGISTER Command in Windows 2000 Terminal Services
http://support.microsoft.com/kb/321701
HOW TO: Use the SHADOW Command to Remotely Monitor an Active Session of Another User in Windows 2000 Terminal Services
http://support.microsoft.com/kb/320191
HOW TO: Change COM Port Mappings by Using the CHANGE PORT Command in Windows 2000 Terminal Services
http://support.microsoft.com/kb/320184
HOW TO: Connect to Another Session by Using the TSCON Command in Windows 2000 Terminal Services
http://support.microsoft.com/kb/321703
Windows 2000 Terminal Services Session Management Tools
http://support.microsoft.com/kb/243202
Managing Terminal Services from the command line
http://technet2.microsoft.com/windowsserver/en/library/1db49727-f587-424d-8d98-bb51630d13a01033.mspx?mfr=true