Set-WssMsoSharePointLibrary

Sets the properties of a sp_online_2 library.

Syntax

Set-WssMsoSharePointLibrary
   [-Library] <SharePointLibrary>
   [[-Name] <String>]
   [[-Description] <String>]
   [-EnableVersioning]
   [-ForceCheckout]
   [<CommonParameters>]

Description

The Set-WssMsoSharePointLibrary cmdlet sets the properties of a sp_online_1 library. A office_365_1 site stores the sp_online_2 library.

Examples

Example 1: Set properties of a SharePoint 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.

1:

PS C:\>

Parameters

-Description

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

-EnableVersioning

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

-ForceCheckout

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

-Library

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

-Name

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

Inputs

Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

Library

Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

Description: SharePoint library

Outputs

SharePointLibrary