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

Posted on 2012-08-14
Last Modified: 2012-09-07
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
Question by:Yashy
    LVL 8

    Expert Comment

    just try extract all the logon log ...filter his name and count his time
    LVL 39

    Expert Comment

    by:Krzysztof Pytko
    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 ;)

    LVL 6

    Expert Comment

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

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
    Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
    This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now