Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 868 Bytes

GetPnPList.md

File metadata and controls

36 lines (30 loc) · 868 Bytes

#Get-PnPList Returns a List object ##Syntax

Get-PnPList [-Web <WebPipeBind>]
            [-Identity <ListPipeBind>]

##Returns

Microsoft.SharePoint.Client.List

##Parameters

Parameter Type Required Description
Identity ListPipeBind False The ID, name or Url (Lists/MyList) of the list.
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Get-PnPList

Returns all lists in the current web

###Example 2

PS:> Get-PnPList -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe

Returns a list with the given id.

###Example 3

PS:> Get-PnPList -Identity Lists/Announcements

Returns a list with the given url.