How do you retrieve a list of logged-in/connected users in .NET?
- by Engram
Here's the scenario:
You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.
Please note that this is the not the same as just retrieving the current interactive user.
I'm guessing that there is some sort of API access to Terminal Services to get this info?