Disable-WssMsoSharePointPermissionInheritance

Windows Server 2012 R2 and Windows 8.1

Disable-WssMsoSharePointPermissionInheritance

Disables permission inheritance for a securable object.

Sintaxis

Parameter Set: ByLibrary
Disable-WssMsoSharePointPermissionInheritance [-Library] <SharePointLibrary> [ <CommonParameters>]

Parameter Set: BySite
Disable-WssMsoSharePointPermissionInheritance [-Site] <SharePointSite> [ <CommonParameters>]




Descripción detallada

The Disable-WssMsoSharePointPermissionInheritance cmdlet disables permission inheritance for a securable object. Securable objects include sites, lists, libraries, folders, documents, or items.

Parámetros

-Library<SharePointLibrary>

Specifies a library. The cmdlet disables permission inheritance for a 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

-Site<SharePointSite>

Specifies a site. The cmdlet disables permission inheritance for a site that you specify.


Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, 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 (http://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,Microsoft.WindowsServerSolutions.O365Integration.SharePointSite



    Library

    Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary

    Description: SharePoint library

    Site

    Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointSite

    Description: SharePoint site



Salidas

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

Ejemplos

Example 1: Disable SharePoint permission inheritance

The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.

The second command disables permission inheritance for the library named $Library.


PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Disable-WssMsoSharePointPermissionInheritance -SharePointLibrary $Library

 

Temas relacionados

Adiciones de comunidad

AGREGAR
Mostrar: