Commands › SharePoint Online

Get-SPOFileArchivePolicyReport

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

Gets run reports for a file archive policy.

Quick start script

# Get-SPOFileArchivePolicyReport — 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-SPOFileArchivePolicyReport -PolicyId <Guid> | Format-List

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

Syntax

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

Parameters (1)

ParameterTypeRequiredWhat it controls
-PolicyId Guid yes Specifies the unique identifier (GUID) of the policy to retrieve run reports for.

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