Determine if a PC is currently logged into through registry

C

cu

Is there a key in the registry that would tell me if the remote PC I am
looking at is currently logged into? I know the
HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\DefaultUserName gives the currently logged
in or last logged in user. I would like to know if they are actually
logged in at this point in time.

Thanks, Curt
 
3

3c273

Google for PSTools. It contains a tool called psloggedon.exe which will so
what you want.
psloggedon -l \\servername
Louis
 
C

cu

I am actually doing this through a VB application so third party
software isn't really an option. Thanks tho.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top