CAS Test connectivity Mailbox in Exchange 2010

In Exchange Server 2010 we can use cmdlets to test Microsoft Office Outlook Web Access (OWA), Microsoft ActiveSync, and Exchange Web Services connectivity from Client Access servers to Mailbox servers. These cmdlets require that a test mailbox be created on each Exchange Server 2010 Mailbox server that is to be tested.

In Exchange 2010 CAS test mailbox is : extes_896add….
In Exchange 2007 CAS test mailbox is : CAS_……

Use below cmdlet to check whether you have created test mailbox.

Get-Mailbox –identity extes*

To create CAS test mailbox in Exchange 2010 server you need to use inbuilt script from “c:\Program Files\Microsoft\Exchange Server\Scripts”. You have to run below cmdlet. Here location can vary according to your installation path.

[PS]D:\Program Files\Microsoft\Exchange Server\Scripts>Get-MailboxServer –Identity abcdagfe1 | .\new-testcasconnectivityUser.Ps1
Please enter a temporary secure password for creating test users. For secure purpose…
Enter Password: ******
Create Test user on : abcdagbe1
Click CTRL+Break to quit or click Enter to continue:

Now I pressed enter and problem begins, Error message says that “mailbox could not be created.Verify that OU exists and that password meets complexity requirements”. Again I ran above cmdlet with more complex password and got same error. OU is default OU which get create when we establish AD.

OK, Now after several attempt I manage to fix this. I open script file “new-testcasconnectivityUser.Ps1” in notepad and saw variable “$Organization” where OU “Users” is used. I simply change OU name by complete path of Canonical name of object like “\Users”.

Note : To see canonical name of OU in object tab you must open ADUC with advanced feature option.

Now I again used cmdlet “Get-MailboxServer –Identity abcdagfe1 | .\new-testcasconnectivityUser.Ps1” and test mailbox got created.

Now you can use cmdlet Get-Mailbox –identity extes* to verify creates CAS mailbox.


5 thoughts on “CAS Test connectivity Mailbox in Exchange 2010

Add yours

  1. Hi
    you have one issue in yur desscription:
    I simply change OU name by complete path of Canonical name of object
    like “\Users”.

    Correct is: “”. Slash between Domain and Users

    Regards Uwe

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

Eine Tolle Reise

Here, you all will come to know about me, about my life and of course some common issues these days!!

Office 365 for IT Pros

The only always up-to-date eBook about the Microsoft 365 cloud Office system, covering Exchange Online, SharePoint Online, OneDrive for Business, Microsoft Teams, Planner, Azure Active Directory, and more

Chirag Patel MVP MCT

Microsoft 365 Specialist

All about Microsoft 365 & Teams

lEt's eNaBle MoDeRn WoRkPlAcE ! News

The latest news on and the WordPress community.

%d bloggers like this: