Commands › SharePoint Online

Get-SPOFileArchivePolicy

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

Gets one or all file archive policies for the tenant.

Quick start script

# Get-SPOFileArchivePolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Get-SPOFileArchivePolicy | Format-List

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

Syntax

Get-SPOFileArchivePolicy [-PolicyId <Guid>] [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-PolicyId Guid Specifies the unique identifier (GUID) of the policy to retrieve. If not specified, all policies under the tenant are returned.

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