Table of Contents

Get-PnPSiteVersionPolicy

SYNOPSIS

Get version policy setting of the site.

Required Permissions

Type API/ Permission Name Admin consent required
Delegated AllSites.FullControl yes

SYNTAX

Get-PnPSiteVersionPolicy [-Connection <PnPConnection>] 

DESCRIPTION

This cmdlet allows retrieval of version policy setting on the site. When the new document libraries are created, they will be set as the version policy of the site. If the version policy is not set on the site, the setting of the tenant will be used.

EXAMPLES

EXAMPLE 1

Get-PnPSiteVersionPolicy

Returns the version policy setting of the site.

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices Microsoft Docs documentation