Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,
Anyone can tell me what is the best way to get all logins/logouts to all systems by all accounts in a network?

1- use OnSessionChange event in windows service
OR
2- use api functions in windows service

I need the time and username of the account that logged in/logged out.
Posted

1 solution

Since ActiveDirectory and Windows doesn't track this information, you can't get it.
 
Share this answer
 
Comments
M_Mogharrabi 18-Sep-12 1:02am    
Why not???
I could get this information by OnSessionChange() in windows service, but the problem is that sometimes it does not work correctly.So i want to find a better way...
Dave Kreskowiak 18-Sep-12 8:11am    
Because it won't do anything for a user mapping a drive to a server share. This is a login to that server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900