new-testcasconnectivityuser.ps1 error
Pessoal,
me deparei com um problema ao monitorar o Exchange Server 2010 com o SCOM 2012.O problema em questão era a ausencia do usuário usado para teste de conectividade dos servidores CAS.No SCOM é apresentado o seguinte Warning:
The test mailbox was not initialized. Run new-TestCasConnectivityUser.ps1 to ensure that the test mailbox is created.
Ao executar o script, depareime com a seguinte mensagem de erro:
CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and that password meets complexity requi
rements.
At D:\Program Files\Microsoft\Exchange Server\V14\Scripts\new-TestCasConnectivityUser.ps1:267 char:31
+ $result = CreateTestUser <<<< $exchangeServer $mailboxServer $securePassword $OrganizationalUnit $UMDialPlan $
UMExtension $Prompt
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,CreateTestUser
Para resolver este problema, devemos editar o script na linha onde encontramos $OrganizationalUnit = “Users” devemos modificar para $OrganizationalUnit = “dominio.local/Users”
