Edit

Share via


Get-SPOListVersionPolicy

Gets the version policy setting on the document library.

Syntax

Default (Default)

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

Description

Gets the version policy setting on the document library.

Examples

EXAMPLE 1

Get-SPOListVersionPolicy -Site https://contoso.sharepoint.com/sites/site1 -List "Documents"

Example 1 gets the version policy setting on the document library called "Documents".

Parameters

-List

The document library name or Id.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SPOListPipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Site

Applicable: SharePoint Online

Specifies the URL of the site.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Microsoft.Online.SharePoint.PowerShell.SPOListPipeBind

Outputs

System.Object