HOW TO: Modify the MaxQueryDuration Setting for Active Directory Services Interface (291438)



The information in this article applies to:

  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Professional SP1
  • Microsoft Windows 2000 Professional SP2

This article was previously published under Q291438

SUMMARY

This article describes how to modify the query policy setting for MaxQueryDuration (maximum query duration). After two minutes, the Active Directory Services Interface (ADSI) queries to Active Directory can stop responding. This behavior can be caused by the MaxQueryDuration setting, which has a default time of two minutes. This value, however, can be changed by using the Ntdsutil.exe utility.

back to the top

Increase MaxQueryDuration Using Ntdsutil.exe

You can use the Ntdsutil.exe utility to increase the default setting of MaxQueryDuration:
  1. At a command prompt, type: ntdsutil.
  2. At a command prompt, type: ldap policies, and then press ENTER.
  3. At a command prompt, type: connections, and then press ENTER.
  4. At a command prompt, type: connect to [yourserver name], and then press ENTER.
  5. At a command prompt, type: q, and then press ENTER to exit back to Lightweight Directory Access Protocol (LDAP) policies.
  6. To display the current values, at a command prompt, type: show values, and then press ENTER.
  7. To set MaxQueryDuration, at a command prompt, type: set maxqueryduration to [number of seconds wanted], and then press ENTER.
  8. At the prompt type: commit changes.
  9. To exit, at a command prompt, type: q, press ENTER, type: q, and then press ENTER.
back to the top

Modification Type:MinorLast Reviewed:1/27/2006
Keywords:kbenv kbHOWTOmaster KB291438 kbAudITPro