Espada Posted December 6, 2007 Share Posted December 6, 2007 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 More sharing options...
DW1 Posted December 6, 2007 Share Posted December 6, 2007 I think a small client on the machines would be necessary... but maybe the next post will prove me wrong LOL AutoIt3 Online Help Link to comment Share on other sites More sharing options...
weaponx Posted December 6, 2007 Share Posted December 6, 2007 I think a small client on the machines would be necessary... but maybe the next post will prove me wrong LOLIndeed it will.Option 1:Command line utility PsLoggedOn, can query local or remote:http://www.microsoft.com/technet/sysintern...PsLoggedOn.mspxOption 2:Google cached page, vb.net:http://www.experts-exchange.com/Programmin...Q_22870016.htmlOption 3:WMI check owner of explorer.exe process Link to comment Share on other sites More sharing options...
Zedna Posted December 6, 2007 Share Posted December 6, 2007 For list of PC names (which are logged on) you can use NET VIEW.But it's not for get list of user names. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now