Collections:
Other Resources:
Remove User Session with "logoff" Command
How to remove a user session with "logoff" 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 remove it:
C:\fyicenter>logoff /?
Terminates a session.
LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V] [/VM]
sessionname The name of the session.
sessionid The ID of the session.
/SERVER:servername Specifies the Remote Desktop server containing the user
session to log off (default is current).
/V Displays information about the actions performed.
/VM Logs off a session on server or within virtual machine.
The 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
jay_writer 3 Disc
>rdp-tcp#0 fyicenter 5 Active rdpwd
rdp-tcp 65536 Listen
C:\fyicenter>logoff 2 /V
Logging off session ID 2
C:\fyicenter>query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
console 1 Conn
jay_writer 3 Disc
>rdp-tcp#0 fyicenter 5 Active rdpwd
rdp-tcp 65536 Listen
joe_tester is forced to logoff from the computer now.
Warning: forcing someone logoff will terminate all his/her running programs. any un-saved data will be lost.
⇒ McAfee Antivirus Applications
⇐ Disconnect User Session with "tsdiscon" Command
2018-01-01, ∼2538🔥, 0💬
Popular Posts:
What is "Windows Connect Now - Config Registrar" in my Windows 7 service list? And how is "Windows C...
Can I remove startup application "UpdaterUI.exe - Networks Associates Common User Interface" to spee...
What is ZCfgSvc.exe process - Intel Wireless ZeroCfgSvc MFC Application? Process ZCfgSvc.exe is the ...
What is "SynTPEnh Caller Service" in my Windows 7 service list? And how is "SynTPEnh Caller Service"...
What is the file extension .VOB (DVD-Video Object or Versioned Object Base)? .VOB is the file extens...