New-WssMsoSharePointLibrary

New-WssMsoSharePointLibrary

Creates a library.

구문

Parameter Set: Default
New-WssMsoSharePointLibrary [-Name] <String> [[-Description] <String> ] [[-LibraryType] <SharePointLibraryType> {InvalidType | NoListTemplate | DocumentLibrary | PictureLibrary | WebPageLibrary} ] [[-Site] <SharePointSite> ] [[-EnableVersioning]] [[-ForceCheckout]] [ <CommonParameters>]

자세한 설명

The New-WssMsoSharePointLibrary cmdlet creates a library. A site stores the library.

매개 변수

-Description<String>

Specifies a description of a library. The cmdlet creates the library with the description that you specify.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-EnableVersioning

Indicates that versioning is enabled for this library.

별칭

없음

필수 여부

false

위치

5

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ForceCheckout

Indicates that force checkout is enabled for this library.

별칭

없음

필수 여부

false

위치

6

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LibraryType<SharePointLibraryType>

Specifies the type of a library. The cmdlet creates the library with the type that you specify.

별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of a library. The cmdlet creates the library with the name that you specify.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Site<SharePointSite>

Specifies a site. The cmdlet creates the library in the site that you specify. If you do not specify this parameter, the cmdlet creates the library under the default site.

별칭

없음

필수 여부

false

위치

4

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • System.String

    Name

    Type: System.String

    Description: Name of the SharePoint library

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • SharePointLibrary

예제

Example 1: Create a SharePoint library

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

The second command creates a SharePoint Online library in the site specified in the $Site variable.

PS C:\> $Site = Get-WssMSOSharePointSite | Select-Object -First 1
PS C:\> New-WssMsoSharePointLibrary -Name "Documents" -Description "SharePoint library used to share documents." -LibraryType "DocumentLibrary" -Site $Site -EnableVersioning

관련 항목

Get-WssMsoSharePointLibrary

Remove-WssMsoSharePointLibrary

Set-WssMsoSharePointLibrary