Solved

Windows Login

Posted on 2008-10-08
6
125 Views
Last Modified: 2010-04-23
Is there a way to keep a log of Windows Logon in Domain enviroment in vb.net? 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 ?
0
Comment
Question by:VBdotnet2005
6 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 22675451
You could read the security logs of your domain controllers.
0
 

Author Comment

by:VBdotnet2005
ID: 22675667
is that the only way?
0
 
LVL 1

Expert Comment

by:FireMelon
ID: 22675697
Logon script which enters the username into a DB perhaps?
String user = SystemInformation.UserName

Open in new window

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Expert Comment

by:JackOfPH
ID: 22675706
Create a program that will capture the username of the log person.
Then run the program everytime the user login.
0
 

Author Comment

by:VBdotnet2005
ID: 22675803
JackOfPH,
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?
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 22675895
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.

Kev
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now