Announcement

Collapse
No announcement yet.

LDAP strings ? - Find all Users which account have expired.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • LDAP strings ? - Find all Users which account have expired.

    Hi All,

    I want to do an LDAP query to find user accounts that have expired.

    Any advise?

    Thank you.

    znme

  • #2
    Re: LDAP strings ? - Find all Users which account have expired.

    Does it have to be an LDAP query??

    If not then just use Active Directory Users and Computers and create a new query (Right click on saved queries and select new query) to search for all user accounts that are disabled.

    Michael
    Michael Armstrong
    www.m80arm.co.uk
    MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

    Comment


    • #3
      Re: LDAP strings ? - Find all Users which account have expired.

      Originally posted by m80arm
      Does it have to be an LDAP query??

      If not then just use Active Directory Users and Computers and create a new query (Right click on saved queries and select new query) to search for all user accounts that are disabled.

      Michael
      Do'h - Just read you message again and noticed the word expired

      Sorry

      Michael
      Michael Armstrong
      www.m80arm.co.uk
      MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment


      • #4
        Re: LDAP strings ? - Find all Users which account have expired.

        Hello,
        This small free tool is for you!
        http://www.joeware.net/win/free/tools/findexpacc.htm
        Regards,
        Csaba Papp
        MCSA+messaging, MCSE, CCNA
        ...............................
        Remember to give credit where credit is due and leave reputation points where appropriate
        .................................

        Comment


        • #5
          Re: LDAP strings ? - Find all Users which account have expired.

          Run the following command from a command prompt:

          Code:
          dsquery user | dsget user -samid -acctexpires
          What is returned is the user account in the left column and in the right column the date the account expires. It will be a date or the word "never"
          VCDX3 #34, VCDX4, VCDX5, VCAP4-DCA #14, VCAP4-DCD #35, VCAP5-DCD, VCPx4, vEXPERTx4, MCSEx3, MCSAx2, MCP, CCAx2, A+
          boche.net - VMware Virtualization Evangelist
          My advice has no warranties. Follow at your own risk.

          Comment

          Working...
          X