Disconnect User Session with "tsdiscon" Command
How to disconnect a user session with "tsdiscon" command on my Windows 7 computer?
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.
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.
â‡‘â‡‘ Windows 7 Security Tutorials
2018-01-13, 2567👍, 0💬
Where to find information about what processes are running on Windows 8 and how to manage them? I wa...
What is "ASP.NET State Service" in my Windows 7 service list? And how is "ASP.NET State Service" ser...
What is REFIEBAR.DLL - Microsoft Research Extra Toolbar Button and Extra Tools Menu Item for Interne...
What is yinsthelper.dll - DLL File - Yahoo YInstHelper Module? yinsthelper.dll is the Yahoo YInstHel...
Can I remove startup application "DSAgnt.exe - Dell Support Agent" to speedup my computer and reduce...