See when a computer last has made a login to the domain?

Posted on 2008-11-11
Last Modified: 2012-05-05
Is it possible to see in ADUC, when a computer last has made a login to the domain?

The reason for the question is, that I have 156 computer objects, in ADUC and right now im trying to rename them after company standard, and we dont have 156 computers

There is the Colum called modified, but it doesnt seem to be last logon date.
Question by:mprs
    LVL 70

    Accepted Solution

    If the domain is in 2003 functional level (or later) you can use

    dsquery computer -inactive X

    Replace the  X with the number of WEEKS

    Author Comment

    That doesnt seems to work. Some of the computers on this list, is being used right now

    Author Comment

    and then again, it looks like the list is right.

    In ADUC there is a colum called modified, what does it cover?
    Is it also possible to see what logonname is used to login to a computer Eg. computer XXX001 is last acces with XXX user
    LVL 70

    Expert Comment

    No not directly - if auditing is enabped you could trael the log - but its messy and time-consuming

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    I'm sure that every Windows systems administrator has written, or at least used, a batch or VBS login script at some point in their career, whether it is to map network drives, install printers, or set some user preferences.  No more! With Window…
    [b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now