new-TestCasConnectivityUser.ps1 error OU exists

4 May 2010

When I wanted to create a test user for SCOM 2007 to monitor Exchange, I constantly ran into the error (whenever I ran the script
new-TestCasconnectivityUser.ps1):

CreateTestUser : Mailbox could not be created. Verify that OU ‘Users’ exists and that password meets complexity requirements.

I checked google, and all solutions pointed to the fact that there was more than one users OU.
When I edited the script and replaced the variable $OrganizationalUnit with a different OU, I still received the same error.

The solution came when I created a new OU in AD and edited the script again, now I changed the $OrganizationalUnit parameter to contain the newly created OU. After that the script ran perfectly.

4 Responses to new-TestCasConnectivityUser.ps1 error OU exists

Avatar

SOny

May 3rd, 2011 at 12:43

.\new-TestCasconnectivityUser.ps1 -OU “CN=Users,DN=domain,DC=com” worked fine for me. Users is a container, not an OU.

Avatar

Sigge

July 4th, 2011 at 18:18

Great, this solved my issue i been having! =) Thnx

Avatar

Mindaugas

September 29th, 2011 at 08:01

Sobed for me too. Thanks!

Avatar

kris

October 5th, 2011 at 18:29

Worked perfectly! Such a simple fix, thanks a mil.

Comment Form