How to determine the last user logged into a computer

Discussion in 'Active Directory' started by James, Jul 18, 2006.

  1. James

    James Guest

    Is it possible to query a computer account or create a script to see who was
    the last user logged into a computer or generate a history of last logged in
    users. I have a Windows 2003 domain in native mode over 2000 workstations
    and servers total.
     
    James, Jul 18, 2006
    #1
    1. Advertisements

  2. Are You interested also in local user logons, in that case use logparser
    to query workstation for specific events
     
    Tomasz Onyszko, Jul 19, 2006
    #2
    1. Advertisements

  3. James

    Wayne Guest

    Don't know if it is possible to do it retrospectively, but we use a logon
    script (batch file) with the following command "echo %computername%
    %username% %date% %time% >>\\servername\logs$\logons\%computername%.txt" -
    this stores a log file for each computer.
     
    Wayne, Jul 19, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.