How do you retrieve a list of logged-in/connected users in .NET?

Posted by Engram on Stack Overflow See other posts from Stack Overflow or by Engram
Published on 2008-09-25T11:02:36Z Indexed on 2010/03/28 21:03 UTC
Read the original article Hit count: 187

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET