Link to home
Start Free TrialLog in
Avatar of daneelvosges
daneelvosges

asked on

Can I determine if a local session is open on a remote computer ?

Hello !

I make a connexion to the remote machine registry (RegConnectRegistry) and I check this value :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName

So I can get the last username who logged on the remote computer.

But how can I check if his windows session is open or not ?

I'll hope you can help me ! :-)

thanks (and sorry for my english)
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW, regarding the registry entries - for each user logged on, the system loads the user's profile to that key, just to clarify.
Avatar of daneelvosges
daneelvosges

ASKER

It's work !

Thanks ! :-)