Categories:
Administration (161)
Adware Spyware (43)
Apache (20)
Bluetooth (127)
DOS Commands (2)
Edge (28)
General (5)
Internet Connection (21)
Internet Explorer (224)
Media Center (14)
Media Player (135)
Mozilla Firefox (22)
MS Access (9)
Performance (204)
PHP (25)
Programming (36)
Security (109)
Silverlight (22)
Tips (144)
Tools (312)
Tutorials (40)
Windows 10 (168)
Windows 7 (1411)
Windows 8 (1712)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (71)
Windows XP (23)
Collections:
Other Resources:
Disconnect User Session with "tsdiscon" Command
How to disconnect a user session with "tsdiscon" command on my Windows 7 computer?
✍: FYIcenter.com
If you see a user session running on your Windows 7 computer,
you can use the "logoff" command to disconnect it:
C:\fyicenter>tsdiscon /? Disconnects a remote desktop 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. T he unique ID of the session needs to be specified.
For example:
C:\fyicenter>query session SESSIONNAME USERNAME ID STATE TYPE DEVICE services 0 Disc console 1 Conn joe_tester 2 Disc rdp-tcp#1 jay_writer 3 Active >rdp-tcp#0 fyicenter 5 Active rdpwd rdp-tcp 65536 Listen C:\fyicenter>tsdiscon 2 /V Disconnecting sessionID 3 from sessionname C:\fyicenter>query session SESSIONNAME USERNAME ID STATE TYPE DEVICE services 0 Disc console 1 Conn joe_tester 2 Disc jay_writer 3 Disc >rdp-tcp#0 fyicenter 5 Active rdpwd rdp-tcp 65536 Listen
jay_writer is disconnected from the computer now.
Warning: disconnecting someone will close his/her remote desktop But his/her programs will be suspended and he/she can reconnect to session to resume them.
⇒ Remove User Session with "logoff" Command
2018-01-13, 1232👍, 0💬
Popular Posts:
How to verify IIS configuration for PHP scripts? If you have followed our Configuring IIS for PHP Sc...
How to use sc.exe command to create a new service? If you want to create a new service, you can use ...
What is BTTray.exe - Process - Bluetooth Tray Application? Process BTTray.exe is Bluetooth Tray Appl...
How to use .htaccess file with Apache server on Window systems? Assuming that you have installed the...
What is Windows Genuine Advantage Validation Tool - Download Program Files (DPF)? Windows Genuine Ad...