tsdiscon.exe

  • File Path: C:\WINDOWS\system32\tsdiscon.exe
  • Description: Session Disconnection Utility

Hashes

Type Hash
MD5 A54CE7F0A0B5971D2728197775B045BA
SHA1 B6837F605B0CBBB02D9DCD751D901EC79E12F903
SHA256 C3998459AB8FFACC280DAD39FC4339A7ECFD9B97445866FA606F00A6D17EBFFC
SHA384 FEF76186FC380BA83B92E750DDAE881D29B7D1831A40DA46A672C30C15C95F192F95A3464FCD90E6698D6A83C1A1F41B
SHA512 75417856D7E9A9B455EB4CC536E2795E83990695C6788F5EBFE162BDE83DCBDB31CCD2ADFE364870C685374610868597860ACA782A44B2BD3B9AAB73F1D156D2
SSDEEP 768:HiepEHsf/LxieT+bFD3Hncw2cmw3zG0etI:HiepEHsf/LNSx7pj6I
IMP 3FC6BB9BBEE32550C1847BB966FD1F6C
PESHA1 A6EEC1717B30A3303239A4B13EC58B0A5C936C02
PE256 784930A6CAEC03853616CE068FF0D6E7F9C424EC13D33775AE24FDD5B8ABC6D7

Runtime Data

Usage (stdout):

Disconnects a Remote Desktop Services session.

TSDISCON [sessionid | sessionname] [/SERVER:servername] [/V] [/VM]

  sessionid           The ID of the session.
  sessionname         The name of the session.
  /SERVER:servername  Specifies the Remote Desktop Session Host server (default is current).
  /V                  Displays information about the actions performed.
  /VM                 Disconnects session on server or within virtual machine. The unique ID of the session needs to be specified.


Usage (stderr):

Invalid parameter(s)
Disconnects a Remote Desktop Services session.

TSDISCON [sessionid | sessionname] [/SERVER:servername] [/V] [/VM]

  sessionid           The ID of the session.
  sessionname         The name of the session.
  /SERVER:servername  Specifies the Remote Desktop Session Host server (default is current).
  /V                  Displays information about the actions performed.
  /VM                 Disconnects session on server or within virtual machine. The unique ID of the session needs to be specified.


Loaded Modules:

Path
C:\WINDOWS\System32\KERNEL32.DLL
C:\WINDOWS\System32\KERNELBASE.dll
C:\WINDOWS\SYSTEM32\ntdll.dll
C:\WINDOWS\system32\tsdiscon.exe

Signature

  • Status: Signature verified.
  • Serial: 33000002ED2C45E4C145CF48440000000002ED
  • Thumbprint: 312860D2047EB81F8F58C29FF19ECDB4C634CF6A
  • Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  • Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

File Metadata

  • Original Filename: tsdiscon.exe.mui
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 10.0.22000.1 (WinBuild.160101.0800)
  • Product Version: 10.0.22000.1
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.
  • Machine Type: 64-bit

File Scan

  • VirusTotal Detections: 0/73
  • VirusTotal Link: https://www.virustotal.com/gui/file/c3998459ab8ffacc280dad39fc4339a7ecfd9b97445866fa606f00a6d17ebffc/detection

Additional Info*

*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.


tsdiscon

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Disconnects a session from a Remote Desktop Session Host server. If you don’t specify a session ID or session name, this command disconnects the current session.

[!IMPORTANT] You must have Full Control access permission or Disconnect special access permission to disconnect another user from a session.

[!NOTE] To find out what’s new in the latest version, see What’s New in Remote Desktop Services in Windows Server.

Syntax

tsdiscon [<sessionID> | <sessionname>] [/server:<servername>] [/v]

Parameters

Parameter Description
<sessionID> Specifies the ID of the session to disconnect.
<sessionname> Specifies the name of the session to disconnect.
/server:<servername> Specifies the terminal server that contains the session that you want to disconnect. Otherwise, the current Remote Desktop Session Host server is used. This parameter is required only if you run the tsdiscon command from a remote server.
/v Displays information about the actions being performed.
/? Displays help at the command prompt.
Remarks
  • Any applications running when you disconnected the session are automatically running when you reconnect to that session with no loss of data. You can use the reset session command to end the running applications of the disconnected session, but this may result in loss of data at the session.

  • The console session can’t be disconnected.

Examples

To disconnect the current session, type:

tsdiscon

To disconnect Session 10, type:

tsdiscon 10

To disconnect the session named TERM04, type:

tsdiscon TERM04

Additional References


MIT License. Copyright (c) 2020-2021 Strontic.