Solved

Windows Login

Posted on 2008-10-08
6
128 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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