XADM: Previewing an Address List Does Not Display More Than 10,000 Objects (259987)



The information in this article applies to:

  • Microsoft Exchange 2000 Server

This article was previously published under Q259987
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

You can use Exchange System Manager to preview available address lists and display all objects for a given address list in the Address List Preview window. However, if an address list contains more than 10,000 objects, the Address List Preview window issues the following error message:
The number of objects found exceeds the maximum allowed. Please refine your search.

MORE INFORMATION

Exchange System Manager uses the Windows 2000 Active Directory Object Picker control to present its Address List Preview windows. By default, Windows 2000 imposes a limit of 10,000 objects to be returned for the Object Picker control. However, you can modify this limit to increase the threshold by either of the following methods:

Method 1: Modify the Registry

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
  1. Use Registry Editor to locate the following registry key:

    HKEY_CURRENT_USER\Software\Policies\Microsoft

  2. Click the HKEY_CURRENT_USER\Software\Policies\Microsoft registry key, and then click Add Key from the Edit menu.
  3. In the Add Key dialog box, type Windows in the Key Name field, and leave the Class field blank. Click OK.
  4. Click the HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows registry key, and then click Add Key from the Edit menu.
  5. In the Add Key dialog box, type Directory UI in the Key Name field, and leave the Class field blank.
  6. Click the HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Directory UI registry key, then click Add Value from the Edit menu.
  7. In the Add Value dialog box, type QueryLimit in the Value Name field, and change the Data Type to REG_DWORD.
  8. In the DWORD Editor dialog box, change the Radix to Decimal, and type the number of objects you want to be displayed (for example, 20,000), and then click OK.
  9. Quit Registry Editor.

Method 2: Use a Group Policy

  1. Using the Group Policy Editor snap-in, click the specific group policy in which you want to define this policy (for example, the Default Domain policy).
  2. In the User Configuration section of the Group Policy that you selected, navigate to the Maximum size of Active Directory searches policy as shown below:

    Administrative Templates\Desktop\Active Directory\Maximum size of Active Directory searches

  3. Double-click the policy. To enable the policy, click Enabled, and then specify in decimal format the number of objects that should be returned. To disable the policy, click Disable.
  4. To set the policy, click Apply, and then click OK.NOTE: As this is a user-based policy, it is not enforced until the user has logged off, and logged on again.

Modification Type:MinorLast Reviewed:4/25/2005
Keywords:kberrmsg kbhowto KB259987