By default, the search results when querying Active Directory are limited. This limit affects all browse displays associated with Active Directory, the Active Directory Users and Computers (ADUC) management console, and other Active Directory related dialog boxes.
As the Active Directory organization grows, you might need to change the number of objects to search. There are generally three ways that this can be accomplished: a group policy object, the Microsoft Management Console (MMC) that you are using, or directly modifying the registry.
The difference among the three is that with a group policy object linked to an organizational unit, all of the user objects within the OU, or users within a child OU will be configured to use the setting. Directly modifying the MMC console or registry for a particular user, only affects that user.
In the following examples, the new value to be set is 50,000. You can use the value that fits your needs.
Group Policy Method
- Start the Group Policy Management Console.Either modify an existing GPO, or create a new one by Right clicking a container.Select the Group Policy Object, and select Edit.Select the Group Policy Object, and select Edit.Select the User Configuration branch, and expand Administrative Templates > Desktop > Active Directory.Double-click Maximum size of Active Directory searches.Select Enabled, and set the number (e.g., 50000).Click Apply.Click OK.Close the Group Policy Editor.
This picture depicts the setting for the Maximum size of Active Directory Searches using the Remote Server Administration Tools (RSAT) on a Windows 7 computer.
Regardless of the version of Active Directory, or console that you use, the way you configure the values is fairly the same. Windows 2000, 2003, and XP require AdminPak to be installed for Active Directory and Group Policy Management tools to be available.
On Windows 2000 and XP (Gold), the Group Policy Management console is not available by default. The tools can be found on Microsoft’s website and can be freely downloaded. Make sure you download the latest version for your Operating System.
Registry Edit Method
- Open Run, type regedit and hit Enter.Go to the registry entry: HKEY_CURRENT_USER\Software\Policies\Microsoft
From the Edit menu, select New > Key, name it Windows. Select the new Windows key, and from the Edit menu, select New, Key, name it Directory UI.
Go to the Directory UI key, and from the Edit menu, select New, DWORD Value, name it QueryLimit. Double-click the new value, and set the decimal value (i.e. 50000). Click OK. Close the registry editor.
MMC Configuration
By far, this is the simplest option when requiring the change for a single user. Open the Active Directory Users and Computers MMC console. In the standard menu, click on View, then Filter Options. In the Filter Options window, type in the desired number of items to display per folder as shown here: