Set-WssMsoSharePointLibrary
Set-WssMsoSharePointLibrary
Sets the properties of a library.
構文
Parameter Set: Default
Set-WssMsoSharePointLibrary [-Library] <SharePointLibrary> [[-Name] <String> ] [[-Description] <String> ] [[-EnableVersioning]] [[-ForceCheckout]] [ <CommonParameters>]
詳細説明
The Set-WssMsoSharePointLibrary cmdlet sets the properties of a library. A site stores the library.
パラメーター
-Description<String>
Specifies a description of a library. The cmdlet modifies the properties of a library with the description you specify.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-EnableVersioning
Indicates that versioning is enabled for this library.
エイリアス |
なし |
必須? |
false |
位置は? |
4 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ForceCheckout
Indicates that force checkout is enabled for this library.
エイリアス |
なし |
必須? |
false |
位置は? |
5 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Library<SharePointLibrary>
Specifies a library object. The cmdlet modifies the library that you specify.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of a library. The cmdlet modifies the name of a library with the name that you specify.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Library
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Description: SharePoint library
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- SharePointLibrary
例
Example 1: Set properties of a SharePoint library
The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.
The second command sets the properties of a library by using the $Library variable. The command also sets the ForceCheckout and EnableVersioning parameters.
PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Set-WssMSOSharePointLibrary -Library $Library -Name "New Name" -Description "New Description" -ForceCheckout -EnableVersioning
PS C:\>