Tip
Subject Content

173
Manage Terminal Services with command-line utilities

Terminal Services provides you with a graphical interface to a remote computer, which makes

Terminal Services extremely useful for administration. While Terminal Services makes for a

great remote administration utility, you'll sometimes want to use command-line utilities to

manage it.



Logoff: Logs off a user from a Terminal Services session and deletes the session.

Msg: Sends a message to other Terminal Services users.

Query: Allows you to query Terminal Services for information about processes, sessions, Terminal

Services running on the network, and user sessions.

Reset session: Use this utility only when Terminal Services malfunctions or isn't responding. Data

loss might occur.

Shadow: Remotely controls sessions from other users, either actively or passively.

Tscon: Connects you to another existing session.

Tsdiscon: Disconnects a session from a Terminal Services server. (Note: You must have Full

Control permissions to disconnect another user.)

Tskill: Ends a process running on Terminal Server. As an administrator, you can also kill

processes belonging to other users.

Tsshutdn: Shuts down or reboots a remote Terminal Services server. Microsoft recommends that

administrators shut down the server using this command-line utility, instead of shutting down the

server via the Start menu. The Start menu method doesn't notify users before ending their

sessions.

Page 173 of 237
First Previous Next Last