Get-SPOList

Retrieves the collection of lists or a specific list.

Get-SPOList -Web <SPOWebPipeBind> [-Identity [<SPOListPipeBind>]] [-Detail [<SwitchParameter>]]

Parameters

1

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site containing the List to retrieve.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

IdentityFalseSPOListPipeBind

Specifies the identity of the List to retrieve.

The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID.

DetailFalseSwitchParameter

Retrieve additional details useful for examining a single object.

Detailed Description

If the -List parameter is not provided then all the lists the given Site are returned; otherwise, a single list will be returned matching the identifier provided.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

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

PS C:\> Get-SPOList -Web "/"

Retrieves all lists for the root Site.

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

PS C:\> Get-SPOList -Web "/" -Identity "Shared Documents"

Retrieves a single list for the given Site.