Monday, October 25, 2010

Ex2010 MP issue: new-testcasconnectivityuser.ps1 script generates errors like ‘Mailbox could not be created.’

When the Ex2010 MP is imported and the PS script ‘new-testcasconnectivityuser.ps1’ is run, errors are thrown. Even when the user who runs this script does have Exchange Admin permissions AND sufficient AD permissions to create a new user.

An error like this one is shown: ‘CreateTestUser : Mailbox could not be created. Verify that OU ( <DOMAIN>\<OU>\<OU>) exists and that password meets complexity requirements.

This error message is easily misunderstood so one starts a search in the wrong direction. Many times this error is thrown when the OU mentioned in the script isn’t UNIQUE. For instance, there are two OU’s in place with the name Service Accounts like this:
image

Changes are that the script will fail. When a unique OU is used instead, the script will run successfully. Afterwards the newly created account can be moved to the proper OU.

No comments: