Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Redmond desk2 min

How to Use TSDiscon to Disconnect a Windows 2000 Terminal Services Session

Use tsdiscon to disconnect a Windows 2000 Terminal Services session without signing off or stopping its programs. Find another session with query session, then target it by ID or name.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To disconnect a Windows 2000 Terminal Services session without signing out or stopping its programs, run tsdiscon from a command prompt. Use it alone for your current session, or identify another session with query session and pass its ID or name. The session stays on the server so its user can reconnect and resume.

Disconnect your current session

  1. From the Terminal Services session, open Start, choose Run, type cmd, and open Command Prompt.
  2. Type tsdiscon and press Enter. This disconnects the session in which you ran the command.

Microsoft KB 321705 documents this procedure for Windows 2000 Server, Windows 2000 Advanced Server, and Windows 2000 Professional. The article was last reviewed on November 20, 2003: Microsoft KB 321705.

As an Amazon Associate I earn from qualifying purchases.

Disconnect a session by ID or name

To target a particular session, first inspect the sessions on the server:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. At the command prompt, run query session.
  2. Find the target session’s ID or name in the results.
  3. Run tsdiscon followed by that ID or name. For example, tsdiscon 2 /v disconnects the session with ID 2 and requests verbose feedback. The Windows 2000 article also gives tsdiscon rdp-tcp#5 as a session-name example.

The documented syntax is tsdiscon SessionID | SessionName [/server:ServerName] /v. Use /server:ServerName to select the Terminal Services server hosting the session; if you omit it, the current Terminal Services server is used. The optional /v requests verbose information. See the Windows 2000 command examples and syntax.

Choose the right target

Command approach When to use it What it targets
tsdiscon You are running the command inside the session you want to disconnect. The current session; no session lookup is needed.
query session, then tsdiscon ID-or-name You need to disconnect a specific session, such as one belonging to another user. The session whose ID or name you provide. Inspect the results first to avoid selecting the wrong session.

What happens after disconnection

Disconnecting is not the same as logging off or ending the session. The session remains on the Terminal Services server in a disconnected state, and its programs continue running. When the user reconnects, they can resume that session and continue using those programs. Microsoft describes this behavior in KB 321705.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Permissions and the console-session restriction

  • You can disconnect your own session.
  • To disconnect another user’s session under the Windows 2000 instructions, you need Full Control access permissions.
  • The console session cannot be disconnected with this command.

Microsoft Learn’s current tsdiscon reference lists Full Control or Disconnect special access for disconnecting another user’s session. That reference was updated November 1, 2024, and applies to newer Remote Desktop Session Host environments; it does not list Windows 2000. Do not treat its additional permission option as a Windows 2000 rule.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.