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>
このコマンドレットは次の共通パラメーターをサポートします。-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: 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