Set-WssMsoSharePointLibrary

Set-WssMsoSharePointLibrary

Sets the properties of a library.

Sintaxis

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

Descripción detallada

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

Parámetros

-Description<String>

Specifies a description of a library. The cmdlet modifies the properties of a library with the description you specify.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-EnableVersioning

Indicates that versioning is enabled for this library.

Alias

ninguno

¿Requerido?

false

¿Posición?

4

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ForceCheckout

Indicates that force checkout is enabled for this library.

Alias

ninguno

¿Requerido?

false

¿Posición?

5

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Library<SharePointLibrary>

Specifies a library object. The cmdlet modifies the library that you specify.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-Name<String>

Specifies the name of a library. The cmdlet modifies the name of a library with the name that you specify.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

    Library

    Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

    Description: SharePoint library

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • SharePointLibrary

Ejemplos

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

Temas relacionados

Get-WssMsoSharePointLibrary

New-WssMsoSharePointLibrary

Remove-WssMsoSharePointLibrary