WTS - Remote list connected users
Solution 1
Take a look here Useful Command-line Commands on Windows
Solution 2
You could use this nice little command line tool:
http://home.fnal.gov/~jklemenc/tslistusers.html
TSListUsers is a command line utility to list both the currently connected and disconnected users, hostname, IP address and RDP session number on either the local or a remote Windows Terminal Server/RDP Server To list the users, you need to have the following abilities: - NetBios access to the server - Permissions allowing you to Query RDP session information (if you can log into the TS, you should have this by default) - Terminal Services/RDP should be running on the target host
Usage:
- TSListUsers.exe /? to get the Help text
- TSListUsers.exe to query a target Terminal Server
- TSListUsers.exe with no paramters to query the local host
Solution 3
Use qwinsta (Query Windows Station) to list the sessions and usernames of your local or a remote terminal services host.
You can then also use rwinsta to disconnect or log off a session of your choice (given the permission to do so).
Related videos on Youtube
Michael Neale
Updated on September 17, 2022Comments
-
Michael Neale almost 2 years
When I perform a simple query like this:
select * from nodeType
Calling
skip(N)
on the range iterator is slow.What am I doing wrong?
-
Zote about 15 yearsI know /admin switch. But I need to know who, before disconnect him.
-
Zote about 15 yearsI don't have this access. The server is in another city.
-
Sam Cogan about 15 yearsSo are you saying remote users are logging onto the console via RDP? If they are using normal RDP sessions you can login through the console (so not logging them off), then open up Terminal Services Manager (Its in administrative tools), and see who is logged in.
-
splattne about 15 yearsquser /SERVER:myserver
-
Tom Leys about 15 years+1 Fantastic for me because I got computer hostnames and everything (essential since we share a single user on the controlled computer)
-
Tom Leys about 15 yearsDoes not provide ipaddresses or hostnames of connected users