Commands › Exchange Online

Get-RetentionEvent

Exchange Online ExchangeOnlineManagement Get-*

View retention events in your organization.

Quick start script

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

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

Syntax

Get-RetentionEvent [[-Identity] <EwsStoreObjectIdParameter>]
 [-AllStatus]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Identity EwsStoreObjectIdParameter The Identity parameter specifies the retention event that you want to view.
-AllStatus SwitchParameter The AllStatus switch specifies whether to include zero count events in the results. You don't need to specify a value with this switch.
-DomainController Fqdn 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.