Commands › Exchange Online
Test-SiteMailbox
Test the site mailbox to Microsoft SharePoint connectivity and to test whether users have the correct permissions to use a site mailbox. This cmdlet should be used for troubleshooting and diagnostic purposes. Site mailboxes were deprecated in Exchange Online and SharePoint Online in 2017. For more information, see Deprecation of Site Mailboxes.
Quick start script
# Test-SiteMailbox — 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
Test-SiteMailbox | Format-List
# 3. Export for evidence / drift tracking
Test-SiteMailbox | Export-Clixml .\SiteMailbox-$(Get-Date -Format yyyyMMdd).xml
Syntax
Test-SiteMailbox [[-Identity] <RecipientIdParameter>]
[-BypassOwnerCheck]
[-Confirm]
[-RequestorIdentity <RecipientIdParameter>]
[-SharePointUrl <Uri>]
[-UseAppTokenOnly]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.