perl - Test If a PC is Logged in Over a Network -


is there way using perl, ps tools, or autoit, test pc, on network, see if powered on , logged in?

for example:

  • script begins
  • script tests pc see if powered on , logged in user
  • script runs task on pc

a plus:

  • return 0 if pc not logged in and/or powered off
  • return user name of ever logged in.

tasklist /s hostname /u username tasklist /s hostname /u domain\username 

will show tasks user running on machine. if returns error or no output, user not logged on. otherwise, parse program list , decide whether programs indicate user logged on, or there tasks running in background on his/her behalf.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -