Measure-PnPList

Returns statistics on the list object

Syntax

Measure-PnPList
       -Identity <ListPipeBind>
                      [-Includes <String[]>]
                      [-ItemLevel [<SwitchParameter>]]
                      [-BrokenPermissions [<SwitchParameter>]]
                      [-Web <WebPipeBind>]
                      [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Measure-PnPList "Documents"

Gets statistics on Documents document library

------------------EXAMPLE 2------------------

Measure-PnPList "Documents" -BrokenPermissions -ItemLevel

Displays items and folders with broken permissions inside Documents library

Parameters

-BrokenPermissions

Show items with broken permissions

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-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.

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:ListPipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Includes

Specify properties to include when retrieving objects from the server.

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False
-ItemLevel

Show item level statistics

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

The web to apply the command to. Omit this parameter to use the current web.

Only applicable to: SharePoint Online, SharePoint Server 2016, SharePoint Server 2019

Type:WebPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False