When importing the Exchange Server 2010 Management Pack into System Center Operations Manager there are a few post tasks you need to complete before all monitors and rules work correctly. One of these is creating a test user and mailbox with the new-TestCasConnectivityUser.ps1 PowerShell script you can find in the scripts sub-directory of your Exchange installation.
When executing it asks you for a one-time temporary password for user creation. Unfortunately I got following error message:
Mailbox could not be created. Verify that OU ( Users ) exists and that password meets complexity requirements.
Well, I did comply with password complexity and the Users OU exists of course as it is a default OU in Active Directory.
But when you work in a matured environment, chances are you have several other “users” OUs depending on the structure and design you implemented in your AD. And the script really doesn’t like that.
So just open the script in your preferred editor, search for “$OrganizationalUnit =” and replace the variable value with a unique OU, like for example “Microsoft Exchange Security Groups”.
The line now looks so: $OrganizationalUnit = “Microsoft Exchange Security Groups”
Now run the script once more and voilà…