Click here to Skip to main content
12,999,633 members (43,373 online)
Rate this:
Please Sign up or sign in to vote.
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
2- use api functions in windows service

I need the time and username of the account that logged in/logged out.
Posted 17-Sep-12 17:47pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Since ActiveDirectory and Windows doesn't track this information, you can't get it.
phoenix1167 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100