troubleshooting Question

Using VB.Net or C#.Net, - List active user logged into a machine and kill the session

Avatar of Arikkan
ArikkanFlag for United States of America asked on
C#Visual Basic.NET
7 Comments1 Solution26 ViewsLast Modified:
We would like to build a simple program that lists users that are logged into the machine and by selecting the item on the list, we want to kill (log off) the session.

Could you please help in
1. code to get list of active session
2. code to log off the specific session (possibly by seeding ID from the #1 above)

(This is somewhat like what we can do from the Task Manager by selecting the user session and "Sign off")


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros