Get-WssMsoSharePointLibrary

Retrieves a sp_online_2 library.

Syntax

Get-WssMsoSharePointLibrary
   [[-Name] <String>]
   [[-Site] <SharePointSite>]
   [<CommonParameters>]

Description

The Get-WssMsoSharePointLibrary cmdlet retrieves a sp_online_1 library. A office_365_1 site stores the sp_online_2 library.

Examples

Example 1: Get a SharePoint library

PS C:\> $Site = Get-WssMsoSharePointSite | Select-Object -First 1
PS C:\> Get-WssMsoSharePointLibrary -Name "Documents" -Site $Site

The first command uses the Get-WssMsoSharePointSite cmdlet to get a site, and stores the result in the $Site variable.

The second command gets the SharePoint Online library for the site specified in the $Site variable.

1:

PS C:\>

Parameters

-Name

Specifies the name of a sp_online_2 library. The cmdlet gets the library for the name that you specify. If you do not specify the Name parameter, the cmdlet returns libraries in the default team site that match other parameters.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Site

Specifies a sp_2013_1 site. The cmdlet gets the library for the site that you specify. If you do not specify the Site parameter, the cmdlet returns libraries in the default team site that match other parameters.

Type:SharePointSite
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Name

Type: System.String

Description: Name of the SharePoint library

Outputs

SharePointLibrary[]