Learn how to a build a cloud-first strategyRegister Now

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

log in times


is there some way I can see when someone logs in to the network? We are using windows 2003 server with AD.
3 Solutions
Check out this article.

This link will inlighten you the subject matter

Check out the various categories on the left!
If you need a real-time alert, a recurring script or service would have to be written.  But if looking up the last logon time of a user would suffice, Windows 2003 AD replicates an attribute called lastLogonTimestamp.  This can be viewed with advanced tools like LDP or ADSIEdit, but you can also get a new tab in your "Active Directory Users and Computers" if you register a DLL called acctinfo.dll available in the Windows 2003 Resource Kit - downloaded from: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en.  You could also install Account Lockout and Management Tools to get the DLL - http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7af2e69c-91f3-4e63-8629-b999adde0b9e.

The new tab the DLL makes available includes things like last logon time, last bad logon against a particular dc, user SID, etc.

I hear there might be a bug in acctinfo.dll though resulting in an incorrect last logon time being displayed.  If you find that the information is indeed incorrect in your environment, there is an unreleased but improved acctinfo2.dll floating around the internet you might be able to track down.
GPO login script .bat:
echo on %DATE% %TIME%, %USERNAME% logged in on %COMPUTERNAME% using %LOGONSERVER% server to authenticate connecting on %SESSIONNAME% >> \\server\share\logon_logoff.txt

Creating the same as a logout script will work the same way. A record will not be present if the system powers off (hard).  no logout porcess started/used.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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