Link to home
Start Free TrialLog in
Avatar of osiexchange
osiexchange

asked on

Trying to run the script new-TestCasConnectivityUser

I just want to run this script and create a test user. I am running it on a 2010 CAS server. I keep getting the error:

CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and that password requirements.

I found numerous articles using Google saying you need to modify the script and change the variable $OrganizationalUnit to something besides users. That doesn't work. I even created a brand new unique OU and put that in the script. It just keeps failing coming back with whatever OU I designate in the script in the error message. I don't know what I am doing wrong. Maybe its the syntax in the script. I don't know. Can someone please tell me how they got around this!! Below is what I am defining $OrganizationalUnit as:

$OrganizationUnit = "Sites/testusers"

No matter what OU I specify in the script, it just keeps coming back telling me the OU does not exist.
Avatar of Shack-Daddy
Shack-Daddy
Flag of United States of America image

1) Make sure that there is a Users OU just off the root of your organization. That's usually the case.
2) Make sure that the password you specify is complex. You'll never need to type it again, so I usually do something really complex.

When I run this script, usually all I have to do is supply the password, since it defaults to the Users OU, which usually always exists.
ASKER CERTIFIED SOLUTION
Avatar of osiexchange
osiexchange

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of osiexchange
osiexchange

ASKER

Solved issue myself