Exchange

Microsoft Exchange – OU picker is empty when creating new user

We've migrated one of our Clients fairly early but recently we got complain that when new user is created from ECP on Exchange 2013 there's no way to pick Organizational Unit (OU) where the user is supposed to be.

Problem Description

It seems that OU Picker was not displaying any OU's. This is strange and a bit unexpected.

Quick verification that Get-OrganizationalUnit actually works as designed confirms that there must be something else here.

Solution

It seems it's well known issue for Exchange Server 2013. It's described in KB303817 but a title is a bit misleading Exchange Server 2013 doesn't display all OUs when it creates a new mailbox. In our case it was not showing all organizational units and not just some of them. The fix is simple from there.

Check OU count in Exchange Management Shell

(Get-OrganizationalUnit -ResultSize unlimited).count

Modify each servers web.config: \\<server>\c$\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\web.config by adding

<!-- 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="2000" />

just before AppSettings end </appSetting>

After that it's just matter of opening IIS, finding MSExchangeECPAppPool and recyling it. 

Do this for every server that holds Mailbox Role.

Notes

This change has to be added to web.config every time there's new Cumulative Update installed as it overwrites web.config. Make sure to add it to your TO DO list for Exchange upgrades.

This post was last modified on November 1, 2016 12:32

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

2 weeks ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

5 months ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

7 months ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

8 months ago

How to Efficiently Remove Comments from Your PowerShell Script

As part of my daily development, I create lots of code that I subsequently comment…

8 months ago

Unlocking PowerShell Magic: Different Approach to Creating ‘Empty’ PSCustomObjects

Today I saw an article from Christian Ritter, "PowerShell: Creating an "empty" PSCustomObject" on X…

9 months ago