# 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…

blog

01 Nov 2016 pl

![Microsoft Exchange – OU picker is empty when creating new user](/wp-content/uploads/2016/01/MicrosoftExchange.png)

[Zobacz obrazy (4)](#pf-content-image-1-0)

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.

[!\[Exchange 2013 ECP OU picker window showing no organizational units\](/wp-content/uploads/2016/10/img_5816ea84d2581.png)](/wp-content/uploads/2016/10/img_5816ea84d2581.png)

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

[!\[Exchange Management Shell output showing organizational units returned by Get-OrganizationalUnit\](/wp-content/uploads/2016/11/img_58187abb6ec1c.png)](/wp-content/uploads/2016/11/img_58187abb6ec1c.png)

### ✅ Solution

It seems it's well known issue for Exchange Server 2013. It's described in [KB303817](https://support.microsoft.com/en-us/kb/3038717) 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**

```plain
(Get-OrganizationalUnit -ResultSize unlimited).count
```

![Exchange Management Shell showing the organizational unit count](/wp-content/uploads/2016/11/img_58186eb851aa3.png)

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

just before AppSettings end ****

[!\[web.config appSettings entry added to increase the ECP OU picker result size\](/wp-content/uploads/2016/11/img_5818723c4278b.png)](/wp-content/uploads/2016/11/img_5818723c4278b.png)

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

[!\[IIS application pools view with MSExchangeECPAppPool selected for recycle\](/wp-content/uploads/2016/11/img_58187784216f9.png)](/wp-content/uploads/2016/11/img_58187784216f9.png)

- 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.

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:F1011D209E0A086BF0462FEED46D8183FB37713EB83686AC16B359C9C13D1FC3 -->
