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.
Specifies a description of a library. The cmdlet modifies the properties of a library with the description you specify.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Indicates that versioning is enabled for this library.
Aliases |
none |
Required? |
false |
Position? |
4 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Indicates that force checkout is enabled for this library.
Aliases |
none |
Required? |
false |
Position? |
5 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies a library object. The cmdlet modifies the library that you specify.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the name of a library. The cmdlet modifies the name of a library with the name that you specify.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Library
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Description: SharePoint library
The output type is the type of the objects that the cmdlet emits.
- SharePointLibrary
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:\>