The term Get-CASMailbox is not recognized Error

In this blog I will share How to Fix The term Get-CASMailbox is not recognized Error when running the command in the Windows PowerShell.

 

Note: The command is available to Exchange Online, Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019.

 

You can get the The term Get-CASMailbox is not recognized Error if your environment is On premise Exchange or Exchange online.

 

The term Get-CASMailbox is not recognized

 

 

 

 

 

 

 

 

 

 

We will talk about both the environments one by one.

 

 

The term Get-CASMailbox is not recognized Error in Exchange On-Premise Environment:

Check if you are running the command on a windows server which has Microsoft Exchange server Installed.

 

For Exchange Administrative tasks, you will have to use Exchange management shell, Windows PowerShell might not work for the same.

 

Run the Get-CASMailbox command in Exchange Management Shell and check the behavior.

 

The term Get-CASMailbox is not recognized Error in Exchange Online Environment:

If you run the Get-CASMailbox command, in the Windows PowerShell without connecting it to the Exchange Online then you get the error.

 

The Windows PowerShell should also be ran as an Administrator.

 

Steps to Fix The term Get-CASMailbox is not recognized Error in Exchange Online Environment:

Run Windows PowerShell as an Administrator and then connect it to Exchange online using this article.

 

Once connected, you should be able to run the Get-CASMailbox command.

 

Below is the syntax of the Get-CASMailbox command:

 

Get-CASMailbox
[-Identity]
[-ActiveSyncDebugLogging]
[-ActiveSyncSuppressReadReceipt]
[-Credential ]
[-DomainController ]
[-Filter ]
[-IgnoreDefaultScope]
[-Monitoring]
[-OrganizationalUnit ]
[-ProtocolSettings]
[-ReadFromDomainController]
[-ResultSize ]
[-SortBy ]
[-ReadIsOptimizedForAccessibility]
[-RecalculateHasActiveSyncDevicePartnership]
[-RecipientTypeDetails ]

 

 

Get-CASMailbox
[-Anr ]
[-ActiveSyncDebugLogging]
[-ActiveSyncSuppressReadReceipt]
[-Credential ]
[-DomainController ]
[-Filter ]
[-IgnoreDefaultScope]
[-Monitoring]
[-OrganizationalUnit ]
[-ProtocolSettings]
[-ReadFromDomainController]
[-ResultSize ]
[-SortBy ]
[-ReadIsOptimizedForAccessibility]
[-RecalculateHasActiveSyncDevicePartnership]
[-RecipientTypeDetails ]

 

 

To know more about the command Get-CASMailbox, you can refer Microsoft Official article.

 

If you have any question, do let me know it by mentioning it in the comment section below.

 

Date:28/08/2023

Author: Prem

 

Leave a Comment

Your email address will not be published. Required fields are marked *