Commands › SharePoint Online

Get-SPOListVersionPolicy

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

Gets the version policy setting on the document library.

Quick start script

# Get-SPOListVersionPolicy — 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-SPOListVersionPolicy -List <SPOListPipeBind> -Site <SpoSitePipeBind> | Format-List

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

Syntax

Get-SPOListVersionPolicy [-Site] <SpoSitePipeBind> -List <SPOListPipeBind> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-List SPOListPipeBind yes The document library name or Id.
-Site SpoSitePipeBind yes Specifies the URL of the site.

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