Commands › SharePoint Online

Get-SPOFileArchivePolicySites

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

Gets the list of sites associated with a file archive policy.

Quick start script

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

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

Syntax

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

Parameters (1)

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

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