Wednesday, June 22, 2011

WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to find the mailbox.

In this post I'm going to address a very common problem many new Exchange 2010 Administrators face.

When running commands such as Test-OutlookWebServices on an Exchange 2010 CAS you will receive the following error:

[PS] C:\>Test-OutlookWebServices
WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to find the mailbox. Mailbox ='extest_0f9a03d82a6d4@destination.local'.
Failed to find the mailbox. Mailbox = 'extest_0f9a03d82a6d4@destination.local'.
+ CategoryInfo : NotSpecified: (:) [Test-OutlookWebServices], MailboxNotFoundException
+ FullyQualifiedErrorId : Microsoft.Exchange.Monitoring.MailboxNotFoundException,Microsoft.Exchange.Management.SystemConfigurationTasks.TestOutlookWebServicesTask





This is probally the first time you have run the Test command isn't it? In Exchange 2010 you need a test mailbox to perform tests with. This can be created using the new-TestCasConnectivityUser.ps1 powershell script Microsoft provides us with Exchange 2010.

All you need to do is navigate to the Scripts directory:

C:\Program Files\Microsoft\Exchange Server\V14\Scripts

Then run .\new-TestCasConnectivityUser.ps1

Provide the test mailbox a password when prompted...



Easy?

9 comments:

  1. I get told that OU might not exist, or that password not matching complexity requirements (they do)

    ReplyDelete
  2. I got that same message as well - "CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and that password meets complexity requirements."
    it also goes on to say line 267 char:31

    ReplyDelete
  3. Thanks - I had no idea what the problem was. Your advice solved the issue!

    ReplyDelete
  4. Same thing...

    OU might not exist, or that password not matching complexity requirements

    ReplyDelete
  5. Goes on right by the prompt for a password (doesn't let me enter a password) and ends up at:
    CreateTestUser : Mailbox could not be created. Verify that OU ( Users ) exists and that password meets complexity requirements. Had nothing but problems with this product so far... too numerous to even name here... thanks Microsoft for a half-baked product... even on SP2...

    ReplyDelete
  6. If you are trying this on a SBS2011 server then you need to edit the script first. Open the new-TestCasConnectivityUser.ps1 script with notepad (run as administrator) and find the $Organisationalunit = "Users" line and change the "Users" to "SBSUsers" so it looks like this $OrganizationalUnit = "SBSUsers". Save the script and then run the powershell command again as in the original article above, it should now complete successfully.

    ReplyDelete
  7. Awesome! thx for help

    ReplyDelete
  8. Changing the $OrganizationalUnit did fix this issue.
    Thanks for the help

    ReplyDelete
  9. I followed the instructions on the following sites and it worked.

    http://technet.microsoft.com/en-us/library/cc732341(WS.10).aspx

    http://social.technet.microsoft.com/wiki/contents/articles/1267.how-to-configure-ssl-offloading-in-exchange-2010.aspx#Configuring_SSL_Offloading_for_Outlook_Web_App_OWA

    ReplyDelete