Exchange Server 2013 doesn't display all OUs when it creates a new mailbox

Symptoms

When you create a new mailbox together with a new user account in Exchange Server 2013, the complete list of organizational units (OUs) is not displayed as expected.

Cause

Exchange Control Panel (ECP) can display no more than 500 OUs. When there are more than 500 OUs, a new window is generated, and this window is either blank or contains a "There are more items to show in this view" message.

Resolution

To resolve this issue, follow these steps:
  1. Determine the number of OUs on the Exchange Server 2013 mailbox server. To do this, run the following command in a shell:

    (Get-OrganizationalUnit –ResultSize unlimited).count

  2. On the Exchange Server 2013 mailbox server, go to the following folder:
     
    <Drive>:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp
  3. Add the following lines in the web.config file just above </appsettings>:

    <!-- allows the OU picker when placing a new mailbox in its designated organizational unit to retrieve all OUs - default value is 500 -->

    <add key="GetListDefaultResultSize" value="500" />
    Note The value of GetListDefaultResultSizekey should exceed the number of OUs that you found in step 1. Additionally, you will have to add this value every time that you install a cumulative update.
     
  4. Restart MSExchangeECPAppPool.
Properties

Article ID: 3038717 - Last Review: Mar 4, 2015 - Revision: 1

Feedback