Commands › Exchange Online

Get-CASMailbox

Exchange Online ExchangeOnlineManagement Get-*

View the Client Access settings that are configured on mailboxes. **Note**: In Exchange Online PowerShell, we recommend that you use the Get-EXOCASMailbox cmdlet instead of this cmdlet. For more information, see Connect to Exchange Online PowerShell.

Quick start script

# Get-CASMailbox — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-CASMailbox | Format-List

# 3. Export for evidence / drift tracking
Get-CASMailbox | Export-Clixml .\CASMailbox-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

AnrSet

Get-CASMailbox [-Anr <String>]
 [-ActiveSyncDebugLogging]
 [-ActiveSyncSuppressReadReceipt]
 [-Credential <PSCredential>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-IgnoreDefaultScope]
 [-Monitoring]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ProtocolSettings]
 [-ReadFromDomainController]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-ReadIsOptimizedForAccessibility]
 [-RecalculateHasActiveSyncDevicePartnership] [<CommonParameters>]
 [-RecipientTypeDetails <RecipientTypeDetails[]>]

Identity

Get-CASMailbox [[-Identity] <MailboxIdParameter>]
 [-ActiveSyncDebugLogging]
 [-ActiveSyncSuppressReadReceipt]
 [-Credential <PSCredential>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-IgnoreDefaultScope]
 [-Monitoring]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ProtocolSettings]
 [-ReadFromDomainController]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [-ReadIsOptimizedForAccessibility]
 [-RecalculateHasActiveSyncDevicePartnership] [<CommonParameters>]
 [-RecipientTypeDetails <RecipientTypeDetails[]>]

Parameters (17)

ParameterTypeRequiredWhat it controls
-Identity MailboxIdParameter The Identity parameter specifies the mailbox that you want to view. You can use any value that uniquely identifies the mailbox. For example:
-ActiveSyncDebugLogging SwitchParameter The ActiveSyncDebugLogging switch shows the actual value of the ActiveSyncDebugLogging property for the mailbox. You don't need to specify a value with this switch.
-ActiveSyncSuppressReadReceipt SwitchParameter This parameter is reserved for internal Microsoft use.
-Anr String The Anr parameter specifies a string on which to perform an ambiguous name resolution (ANR) search. You can specify a partial string and search for objects with an attribute that matches that string. The default...
-Credential PSCredential The Credential parameter specifies the username and password that's used to run this command. Typically, you use this parameter in scripts or when you need to provide different credentials that have the required permissions.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-IgnoreDefaultScope SwitchParameter The IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope. You don't need to specify a value with this switch.
-Monitoring SwitchParameter This parameter is available only in on-premises Exchange.
-OrganizationalUnit OrganizationalUnitIdParameter The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an...
-ProtocolSettings SwitchParameter The ProtocolSettings switch returns the server names, TCP ports and encryption methods for the following settings:
-ReadFromDomainController SwitchParameter This parameter is available only in on-premises Exchange.
-ReadIsOptimizedForAccessibility SwitchParameter The ReadIsOptimizedForAccessibility switch specifies whether to read the value of the IsOptimizedForAccessibility property on the mailbox (whether the mailbox is configured to use the light version of Outlook on the...
-RecalculateHasActiveSyncDevicePartnership SwitchParameter The RecalculateHasActiveSyncDevicePartnership switch recalculates the value of the HasActiveSyncDevicePartnership property on the mailbox. You don't need to specify a value with this switch.
-RecipientTypeDetails RecipientTypeDetails[] This parameter is available only in the cloud-based service.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.
-SortBy String The SortBy parameter specifies the property to sort the results by. You can sort by only one property at a time. The results are sorted in ascending order.

Message Center changes mentioning this command

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.