Sign in to follow this  
Followers 0
Espada

Getting Remote Usernames

4 posts in this topic

I am looking for a way to write a little script which will detect who is logged on to a classroom pc from my laptop and if they are not supposed to be in that seat then it will log them off.

The logging off bit is easy but I cannot figure out how to get the name of the user on a remote machine without having some client on that machine which I want to avoid.

Share this post


Link to post
Share on other sites



I think a small client on the machines would be necessary... but maybe the next post will prove me wrong LOL

Share this post


Link to post
Share on other sites

I think a small client on the machines would be necessary... but maybe the next post will prove me wrong LOL

Indeed it will.

Option 1:

Command line utility PsLoggedOn, can query local or remote:

http://www.microsoft.com/technet/sysintern...PsLoggedOn.mspx

Option 2:

Google cached page, vb.net:

http://www.experts-exchange.com/Programmin...Q_22870016.html

Option 3:

WMI check owner of explorer.exe process

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0