Commands › Exchange Online

Test-ArchiveConnectivity

Exchange Online ExchangeOnlineManagement Test-*

Verify archive functionality for a mailbox user.

Quick start script

# Test-ArchiveConnectivity — 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-ArchiveConnectivity -UserSmtp <SmtpAddress> | Format-List

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

Syntax

Test-ArchiveConnectivity [-UserSmtp] <SmtpAddress>
 [-AllowCrossSite]
 [-Confirm]
 [-IncludeArchiveMRMConfiguration]
 [-MessageId <String>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-UserSmtp SmtpAddress yes The UserSmtp parameter specifies the SMTP address of the mailbox.
-AllowCrossSite SwitchParameter This parameter is available only in the cloud-based service.
-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.
-IncludeArchiveMRMConfiguration SwitchParameter The IncludeArchiveMRMConfiguration switch retrieves retention tags that are provisioned in the user's archive mailbox and the last time the archive was processed by the Managed Folder Assistant. You don't need to...
-MessageId String This parameter is reserved for internal Microsoft use.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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