Microsoft KB Archive/291438

= HOW TO: Modify the MaxQueryDuration Setting for Active Directory Services Interface =

Article ID: 291438

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2

-



This article was previously published under Q291438





IN THIS TASK
SUMMARY
 * Increase MaxQueryDuration Using Ntdsutil.exe



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 [ ], 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 [ ], 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

Keywords: kbhowtomaster kbenv KB291438

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.