Windows Login

Is there a way to keep a log of Windows Logon in Domain enviroment in This will be for the entire company. Their user name and time they logon will be store in MS-SQL.  Is this a possible thing to do? I want to know where to read it from. I can read from logon event, but that is way to much. I don't really need to see the code right now. Any thoughts for you, Experts ?
Who is Participating?
Kevin CrossConnect With a Mentor Chief Technology OfficerCommented:
Sorry for my earlier comment as I thought you wanted to burn logs from servers to database.

The other two suggestions are based on using Active Directory login scripts to trigger your .NET code; however, it sounds like you want this to fire even on the unlock which doesn't re-run login script.  

For the idle time, it would not matter in the former solution as it triggers on login and optionally logout, but not in between.

Kevin CrossChief Technology OfficerCommented:
You could read the security logs of your domain controllers.
VBdotnet2005Author Commented:
is that the only way?
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Logon script which enters the username into a DB perhaps?
String user = SystemInformation.UserName

Open in new window

Create a program that will capture the username of the log person.
Then run the program everytime the user login.
VBdotnet2005Author Commented:
That is what I am trying to do.   Lets say, when they hit "Ctrl, Alt, Delete" to log in, is there are way to capture it? And how about the idle time?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.