Commands › Exchange Online

Get-EXOCasMailbox

Exchange Online ExchangeOnlineManagement Get-*

For more information, see About the Exchange Online PowerShell module. Use the Get-EXOCasMailbox cmdlet to view the Client Access settings that are configured on mailboxes.

Quick start script

# Get-EXOCasMailbox — 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-EXOCasMailbox | Format-List

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

Syntax — 2 parameter sets

Identity (Default)

Get-EXOCasMailbox [[-Identity] <String>]
 [-ActiveSyncDebugLogging]
 [-ExternalDirectoryObjectId <Guid>]
 [-Filter <String>]
 [-GetImapProtocolLog]
 [-GetPopProtocolLog]
 [-IgnoreDefaultScope]
 [-OrganizationalUnit <String>]
 [-PrimarySmtpAddress <String>]
 [-Properties <String[]>]
 [-PropertySets <PropertySet[]>]
 [-ProtocolSettings]
 [-ReadIsOptimizedForAccessibility]
 [-ResultSize <Unlimited>]
 [-SendLogsTo <String[]>]
 [-UserPrincipalName <String>]
 [<CommonParameters>]

Anr

Get-EXOCasMailbox [-Anr <String>]
 [-ActiveSyncDebugLogging]
 [-Filter <String>]
 [-GetImapProtocolLog]
 [-GetPopProtocolLog]
 [-IgnoreDefaultScope]
 [-OrganizationalUnit <String>]
 [-Properties <String[]>]
 [-PropertySets <PropertySet[]>]
 [-ProtocolSettings]
 [-ReadIsOptimizedForAccessibility]
 [-ResultSize <Unlimited>]
 [-SendLogsTo <String[]>]
 [<CommonParameters>]

Parameters (17)

ParameterTypeRequiredWhat it controls
-Identity String The Identity parameter specifies the mailbox you want to view. For the best performance, we recommend using the following values:
-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...
-ActiveSyncDebugLogging SwitchParameter This parameter is reserved for internal Microsoft use.
-ExternalDirectoryObjectId Guid The ExternalDirectoryObjectId parameter identifies the mailbox that you want to view by the ObjectId in Microsoft Entra ID.
-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'"`.
-GetImapProtocolLog SwitchParameter This parameter is reserved for internal Microsoft use.
-GetPopProtocolLog SwitchParameter This parameter is reserved for internal Microsoft use.
-IgnoreDefaultScope SwitchParameter This parameter is reserved for internal Microsoft use.
-OrganizationalUnit String 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...
-PrimarySmtpAddress String The PrimarySmtpAddress identifies the mailbox that you want to view by primary SMTP email address (for example, navin@contoso.com).
-Properties String[] The Properties parameter specifies the properties that are returned in the output of this cmdlet. You can specify multiple values separated by commas.
-PropertySets PropertySet[] The PropertySets parameter specifies a logical grouping of properties that are returned in the output of this cmdlet. Valid values are:
-ProtocolSettings SwitchParameter The ProtocolSettings switch returns the server names, TCP ports and encryption methods for the following settings:
-ReadIsOptimizedForAccessibility SwitchParameter This parameter is reserved for internal Microsoft use.
-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.
-SendLogsTo String[] This parameter is reserved for internal Microsoft use.
-UserPrincipalName String The UserPrincipalName parameter identifies the mailbox that you want to view by UPN (for example, navin@contoso.onmicrosoft.com).

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