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:
WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to find the mailbox. Mailbox ='email@example.com'.
Failed to find the mailbox. Mailbox = 'firstname.lastname@example.org'.
+ 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...