• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1655
  • Last Modified:

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
0
Yashy
Asked:
Yashy
1 Solution
 
barrykflCommented:
just try extract all the logon log ...filter his name and count his time
0
 
Krzysztof PytkoActive 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
 
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

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now