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:
Use "Query Session" Command
How to use "query Session" to find out how many desktop sessions are running on my Windows 7 computer?
✍: FYIcenter.com
If you allow remote logins to your Windows 7 computer,
there might be multiple desktop sessions are running on your computer.
To find out how many desktop sessions are on your computer, you can use the "query session" command:
C:\fyicenter>query session /? Display information about Remote Desktop Sessions. QUERY SESSION [sessionname | username | sessionid] [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER] [/VM] sessionname Identifies the session named sessionname. username Identifies the session with user username. sessionid Identifies the session with ID sessionid. /SERVER:servername The server to be queried (default is current). /MODE Display current line settings. /FLOW Display current flow control settings. /CONNECT Display current connect settings. /COUNTER Display current Remote Desktop Services counters information. /VM Display information about sessions within virtual machines.
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
So there are 6 sessions on this computer:
⇒ Disconnect User Session with "tsdiscon" Command
2018-01-13, 1188👍, 0💬
Popular Posts:
Why I am getting the "Warning: Unresponsive Script" message box? How to avoid this message box? When...
What is "Microsoft SharePoint Workspace Audit Service" in my Windows 7 service list? And how is "Mic...
Can I remove startup application "DSAgnt.exe - Dell Support Agent" to speedup my computer and reduce...
Can I remove startup application "RealPlay.exe - RealPlayer Tray Bar Application" to speedup my comp...
What is "Software Protection" in my Windows 7 service list? And how is "Software Protection" service...