Determine if a PC is currently logged into through registry

  • Thread starter Thread starter cu
  • Start date Start date
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
 
Google for PSTools. It contains a tool called psloggedon.exe which will so
what you want.
psloggedon -l \\servername
Louis
 
I am actually doing this through a VB application so third party
software isn't really an option. Thanks tho.
 
Back
Top