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, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook

Follow him on twitter @suprotimagarwal

No comments: