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
Who is Participating?
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Active Directory User Last Logon

This has some WMI scripting and might help your cause
Determining how long the user is logged on to Windows

- Rancy
just try extract all the logon log ...filter his name and count his time
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 ;)

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.
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.