Commands › Exchange Online

Get-SiteMailboxDiagnostics

Exchange Online ExchangeOnlineManagement Get-*

View important event-related data for each site mailbox. This information can be used to troubleshoot site mailbox issues. Site mailboxes were deprecated in Exchange Online and SharePoint Online in 2017. For more information, see Deprecation of Site Mailboxes.

Quick start script

# Get-SiteMailboxDiagnostics — 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-SiteMailboxDiagnostics -Identity <RecipientIdParameter> | Format-List

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

Syntax

Get-SiteMailboxDiagnostics [-Identity] <RecipientIdParameter>
 [-BypassOwnerCheck]
 [-Confirm]
 [-SendMeEmail]
 [-WhatIf]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Identity RecipientIdParameter yes The Identity parameter specifies the site mailbox that you want to view. You can use any value that uniquely identifies the site mailbox. For example:
-BypassOwnerCheck SwitchParameter The BypassOwnerCheck parameter is used when the account that's running the command isn't a member or owner of the site mailbox. You don't need to specify a value with this switch.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-SendMeEmail SwitchParameter The SendMeEmail switch specifies that the diagnostic information is sent to the primary SMTP email address of the user account that's running the command. You don't need to specify a value with this switch.
-WhatIf SwitchParameter This parameter is reserved for internal Microsoft use.

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