Some of the PowerShell test cmdlets in Exchange Server 2013 rely on the administrator providing a mailbox credential for the test, or alternatively they can use a special mailbox user created specifically for use by the test cmdlets.
You can create this mailbox user on a Mailbox server by running the new-TestCasConnectivityUser.ps1 script provided by Microsoft. Running the script on a Mailbox server will create the test user on that server.
[PS] C:\>cd $exscripts [PS] C:Program FilesMicrosoftExchange ServerV15scripts>.new-TestCasConnectivityUser.ps1 Please enter a temporary secure password for creating test users. For security purposes, the password will be changed regularly and automatically by the system. Enter password: *********** Create test user on: E15MB1.exchange2013demo.com Click CTRL+Break to quit or click Enter to continue.: UserPrincipalName: email@example.com You can enable the test user for Unified Messaging by running this command with the following optional parameters : [-UMDialPlan -UMExtension ] . Either None or Both must be present.
There are only a few ways that script can go wrong, such as not providing a password that is complex enough for your password policy, or the script being unable to determine the OU to place the user account object in. If necessary use the –OU parameter to specify which OU the account should be created in.