Powershell Needful Things put that in your pipeline

3Dec/103

Creating Test Mailboxes for Mailbox Servers

After a couple of requests for more information with regards to the CAS monitoring mailbox, and how to create them, I am going to do a quick cut / paste from Technet:

Create Test Mailboxes for OWA, ActiveSync, and Exchange Web Services Connectivity Monitoring.

The Exchange Server 2007 Management Pack uses 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 2007 Mailbox server that is to be tested. In this procedure you create test mailboxes for OWA, ActiveSync, and Exchange Web Services connectivity monitoring by using PowerShell to run the New-TestCasConnectivityUser.ps1 script. The appropriate mailbox is created on each Mailbox server by piping in the results of get-mailboxServer.

To create a test mailbox for OWA, ActiveSync, and Exchange Web Services connectivity monitoring

1. On a Mailbox Server, open PowerShell and change directory to the C:\ Program Files\Microsoft\Exchange Server\Scripts folder.
2. Execute the following command: get-mailboxServer | .\new-TestCasConnectivityUser.ps1

Follow the on-screen installation instructions to complete the creation of the test mailbox. When requested, provide a temporary password for the test mailbox. The password must conform to your domain password policy.

This will create a new CAS_ user for each mailbox server. The number following the _ is the GUID of the mailbox server which the test user belongs to.
Remember, this user account is used commands like Test-ActiveSyncConnectivity, Test-OWAConnectivity etc. These mailboxes are also required when using the Exchange 2007 Management Pack for MOM.

These accounts are also required when using my Exchange 2007 Audit Script, as it relies on the test-* cmdlets.

Comments (3) Trackbacks (0)
  1. is this good for exchange 2010?

  2. I`m using exchange 2010 and got the error below:

    “PS C:\Program Files\Microsoft\Exchange Server\V14\Scripts> get-mailboxServer | .\new-TestCasConnectivityUser.ps1
    Please enter a temporary secure password for creating test users. For security purposes, the password will be changed r
    egularly and automatically by the system if SCOM is installed. The password must be changed manually if SCOM is not ins
    talled.
    Enter password: ************
    Create test user on: PELIMREPMX01.ISAMDNT.GRUPO-ISA.com
    Click CTRL+Break to quit or click Enter to continue.:
    Multiple organizational units match identity “Users”. Specify a unique value.
    At C:\Program Files\Microsoft\Exchange Server\V14\Scripts\new-TestCasConnectivityUser.ps1:49 char:7
    + <<<< new-Mailbox -Name:$UserName -Alias:$UserName -UserPrincipalName:$UserPrincipalName -SamAccountName:$SamAc
    countName -Password:$SecurePassword -Database:$mailboxDatabaseName -OrganizationalUnit:$OrganizationalUnit -ErrorVaria
    ble err -ErrorAction SilentlyContinue
    + CategoryInfo : NotSpecified: (:) [], ManagementObjectAmbiguousException
    + FullyQualifiedErrorId : EEBE6AB"

    Do you know why ?


Leave a comment

No trackbacks yet.