Categories:
Administration (10)
Adware Spyware (7)
Apache (10)
Bluetooth (125)
DOS Commands (1)
Edge (28)
General (2)
Internet Explorer (217)
Media Center (12)
Media Player (11)
Mozilla Firefox (18)
PHP (15)
Programming (8)
Security (4)
Silverlight (15)
Tips (17)
Tools (218)
Tutorials (5)
Windows 10 (166)
Windows 7 (636)
Windows 8 (1091)
Windows Phone (33)
Windows Server 2008 (165)
Windows Server 2012 (84)
Windows Server 2016 (23)
Windows Vista (52)
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
⇠Use "Query Session" Command
⇑ Managing User Remote Login Sessions
⇑⇑ Windows 7 Security Tutorials
2023-08-03, 4952👍, 1💬
Popular Posts:
The overtype key seems to have been disabled since the last round of updates. I have tried following...
A collection of 14 tutorials on Apache and PHP installation and configuration covering: How to downl...
I don't know if this is a Windows Problem or an HP problem. HP says windows. But anyhow I have a bra...
How to install Windows 7 Service Pack 1 (SP1)? I have the SP1 file downloaded. If you have the Windo...
What files are installed by Yahoo! Toolbar for Internet Explorer (IE) 7 browser? Whenever an Interne...