ADSI queries fails at 2 minutes


The default Active Directory Services Interface ( ADSI ) duration is two
minutes. After that period, ADSI queries will stop responding. This is
controlled by the MaxQueryDuration setting. You can use
the Ntdsutil.exe utility to increase this duration:


  • At a command prompt, type ntdsutil then press ENTER.

  • Once ntdsutil starts, type the following commands
    within the utility:

    • Type ldap policies then press ENTER.
    • Type connections then press ENTER.
    • Type connect to yourservername then press
      ENTER.
    • Type q then press ENTER to exit back to Lightweight
      Directory Access Protocol (LDAP) policies .
    • To display current values, type show values then
      press ENTER.
    • Type set maxqueryduration to
      numberofsecondswanted
      then press ENTER.
    • Type commit changes then press ENTER.
    • To display current values, type show values then
      press ENTER.
    • Exit by typing q press ENTER and typing q press ENTER.
Related tips:

Leave a Comment

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top