Test-OutlookWebServices failed to find the mailbox in Exchange 2010

When you try to run the Test-OutlookWebServices script on a newly installed Exchange 2010 Server, the following error may occur in the Exchange Management Shell (EMS):

[PS] C:\Windows\system32>Test-OutlookWebServices -ClientAccessServer EXCH2K10
WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to find the mailbox. Mailbox = ‘extest_acddf2d5e4954@my.domain.com’.
Failed to find the mailbox. Mailbox = ‘extest_acddf2d5e4954@my.domain.com’.
    + CategoryInfo          : NotSpecified: (:) [Test-OutlookWebServices], MailboxNotFoundException
    + FullyQualifiedErrorId : Microsoft.Exchange.Monitoring.MailboxNotFoundException,Microsoft.Exchange.Management.SystemConfigurationTasks.TestOutlookWebServicesTask

If this is the first time you try to run the test, this typically means you haven’t configured the test account yet.
You should run the new-TestCasConnectivityUser.ps1 script first. Follow these instructions to make it work:

  1. Open a Exchange Management Shell on the Exchange Server
  2. Navigate to C:\Program Files\Microsoft\Exchange Server\V14\ (or any other folder where you installed Exchange
  3. Navigate to the folder Scripts
  4. Run .\new-TestCasConnectivityUser.ps1
  5. When asked, type a strong password (Exchange 2010 will change this password automatically at a later time)

Now, you can run the Test-OutlookWebServices -ClientAccessServer <servername> again.

Leave a Reply

8 Comments on "Test-OutlookWebServices failed to find the mailbox in Exchange 2010"

Notify of
avatar
Sort by:   newest | oldest | most voted
Frank
Guest

A variable that cannot be referenced in restricted language mode or a Data section is being referenced. Variables that
can be referenced include the following: $PSCulture, $PSUICulture, $true, $false, and $null.
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : VariableReferenceNotSupportedInDataSection

Ben
Guest

I found that editing the script and replacing each instance of
-ErrorVariable err
with
-ErrorVariable $err
got rid of this problem.

sms forex signals
Guest

Wow, awesome weblog format! How lengthy have you ever
been blogging for? you made blogging glance easy. The entire look
of your website is excellent, as smartly as the content!

Jeff Green
Guest

It’s important to note this command will fail if you have multiple OUs with the same name. In this instance I had a “Users” OU somewhere else in my hierarchy so I had to edit the .ps1 script and search for $OrganizationalUnit = “Users” and change it to the DN of the root Users OU and it worked perfectly. Thanks for the post!

Muthunallu Raja G
Guest

It worked exactly, Thank you Christian.

Merry Christmas…!!

ryan
Guest

you need to do this from the mailbox server

james
Guest

got a write error when attempting this

Muthunallu Raja G
Guest

Hello James,

You have to type exactly in exchange Powershell as below.

.\new-TestCasConnectivityUser.ps1

wpDiscuz