Set-WssMsoSharePointLibrary

Set-WssMsoSharePointLibrary

Sets the properties of a library.

Syntax

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

Detailed Description

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

Parameters

-Description<String>

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

-EnableVersioning

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

-ForceCheckout

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

-Library<SharePointLibrary>

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

-Name<String>

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

<CommonParameters>

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).

Inputs

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • SharePointLibrary

Examples

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:\> 

Get-WssMsoSharePointLibrary

New-WssMsoSharePointLibrary

Remove-WssMsoSharePointLibrary