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.