Set-WssMsoSharePointLibrary
Sets the properties of a sp_online_2 library.
Set-WssMsoSharePointLibrary
[-Library] <SharePointLibrary>
[[-Name] <String>]
[[-Description] <String>]
[-EnableVersioning]
[-ForceCheckout]
[<CommonParameters>]
The Set-WssMsoSharePointLibrary cmdlet sets the properties of a sp_online_1 library. A office_365_1 site stores the sp_online_2 library.
PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Set-WssMSOSharePointLibrary -Library $Library -Name "New Name" -Description "New Description" -ForceCheckout -EnableVersioning
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:\>
Specifies a description of a sp_online_2 library. The cmdlet modifies the properties of a library with the description you specify.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates that versioning is enabled for this library.
Type: | SwitchParameter |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates that force checkout is enabled for this library.
Type: | SwitchParameter |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a sp_online_2 library object. The cmdlet modifies the library that you specify.
Type: | SharePointLibrary |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the name of a library. The cmdlet modifies the name of a sp_online_2 library with the name that you specify.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Library
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Description: SharePoint library
SharePointLibrary