How can I tell how long somebody has been logged on for on a server 2003

Hi guys

If somebody logs onto the server through AD, how can I tell for how long that user stayed logged on for? Is this something that can be enabled via auditing?

Many thanks
Yash
LVL 1
YashyAsked:
Who is Participating?
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Active Directory User Last Logon
http://gallery.technet.microsoft.com/scriptcenter/1596233c-2f4e-40a5-83cf-4d3265b01d26

This has some WMI scripting and might help your cause
Determining how long the user is logged on to Windows
stackoverflow.com/questions/13578/determining-how-long-the-user-is-logged-on-to-windows

- Rancy
0
 
barrykflCommented:
just try extract all the logon log ...filter his name and count his time
0
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
You cannot do that simply. AD does not store that information. You need for that some scrpt which checks user logon and logoff date and time.

However, if you have enabled Directory Services auditing (by default enabled) you can look in Security event log user logon and logoff events and evaluate it by yourself ;)

Regards,
Krzysztof
0
 
Iradat SiddiquiCommented:
You could check the modified date on the users profile on the terminal server (in c:\documents and settings\user).

For the last logon with the account, this value is stored in AD and can usually be viewed with a simple VBS script.

http://www.rlmueller.net/Last%20Logon.htm
0
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.