Computer Last Password Change

Discussion in 'Scripting' started by TheNugget2007, Apr 10, 2009.

  1. Hi

    I have been asked is there a way of working out the date and time a computer
    account has been active on a domain.

    Basically we have a lot of hardware that is being upgraded and our support
    staff do not always remove old accounts from AD.

    From what I have been told, Computer Accounts have to authenticate
    themselves with AD within a certain period and a password is changed at this

    How can I query this?


    TheNugget2007, Apr 10, 2009
    1. Advertisements

  2. TheNugget2007

    Marcin Guest

    Marcin, Apr 10, 2009
    1. Advertisements

  3. Joe Richards' oldcmp utility is the best tool. If you want a scripting
    solution I have an example VBScript program that documents the date/time
    when all users last changed their password linked here:

    The program has the changes required to document computers rather than users
    commented in the code.
    Richard Mueller [MVP], Apr 10, 2009
  4. Hello TheNugget2007,

    As said from the others, oldcomp is a really good solution.

    Best regards

    Meinolf Weber
    Meinolf Weber [MVP-DS], Apr 10, 2009
  5. Bruce Sanderson, Apr 10, 2009
  6. Jorge de Almeida Pinto [MVP - DS], Apr 17, 2009
    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.