Table of contents
TOC
Collapse the table of content
Expand the table of content

Get-PnPList

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Returns a List object

Syntax

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

Returns

Microsoft.SharePoint.Client.List

Parameters

ParameterTypeRequiredDescription
IdentityListPipeBindFalseThe ID, name or Url (Lists/MyList) of the list.
IncludesString[]FalseSpecify properties to include when retrieving objects from the server.
WebWebPipeBindFalseThe 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.

© 2017 Microsoft