Jump to content

Getting Remote Usernames


Espada
 Share

Recommended Posts

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...