Get-WssMsoSharePointLibrary

Get-WssMsoSharePointLibrary

Retrieves a library.

構文

Parameter Set: Default
Get-WssMsoSharePointLibrary [[-Name] <String> ] [[-Site] <SharePointSite> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-Name<String>

Specifies the name of a 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.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Site<SharePointSite>

Specifies a 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.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String

    Name

    Type: System.String

    Description: Name of the SharePoint library

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • SharePointLibrary[]

Example 1: Get a SharePoint library

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.

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

関連トピック

New-WssMsoSharePointLibrary

Remove-WssMsoSharePointLibrary

Set-WssMsoSharePointLibrary