Script to query date of password expiration

Discussion in 'Active Directory' started by Jason T. Parker, Mar 29, 2005.

  1. All,

    I have been asked to look into writing a script that will query AD (LDAP or
    ADSI). What I am looking for is either:

    A.) Give me all users and return with the number of days until the users
    password will expire.

    B.) Specifiy a value for the number of days before the password expires and
    return all users who meet the criteria.

    Possible? I think so, but need help...
    Jason T. Parker, Mar 29, 2005
    1. Advertisements

  2. See tip 8451, Email a password expiration notice to all users whose password will expire in n days.
    in the 'Tips & Tricks' at

    It doesn't use LDAP ot ADSI.

    Jerold Schulman
    Windows Server MVP
    JSI, Inc.
    Jerold Schulman, Mar 29, 2005
    1. Advertisements

  3. This is AWESOME...thanks!

    Jason T. Parker, Mar 30, 2005
  4. Joe Richards [MVP], Apr 3, 2005
    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.