Find Out the Users Connected to a Windows Server using C# or VB.NET

I was recently asked this question on the forums – How do I find out and list the users connected to a server? I said use Cassia

A standard way of achieving this requirement is to use P/Invoke to access the Windows Terminal Services API. Cassia is a .NET library that acts as a wrapper on the native Windows Terminal Services API.

Cassia has been tested on Windows Server 2008 R2 Beta, Windows Server 2008, Windows Server 2003, Windows XP, and Windows Server 2000. It should work on Windows Vista as well. I haven’t tried it on Windows 7. If any of you does, kindly drop in a comment and let the users know of your experience.

Check out Cassia!



Will you give this article a +1 ? Thanks in advance


About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

No comments: