Disable-SPOFeature

Disables a Feature within the current Site Collection or a specific Site.

Disable-SPOFeature [-Web [<SPOWebPipeBind>]] -Identity <Guid> [-Force [<SwitchParameter>]]

Parameters

1

ParameterRequiredTypeDescription
WebFalseSPOWebPipeBind

Specifies the identity of the Site where the specified Feature will be deactivated.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

IdentityTrueGuid

ForceFalseSwitchParameter

Detailed Description

If the -Web parameter is not provided then a Site Collection scoped Feature will be disabled; otherwise, a Site scoped Feature for a given Site will be disabled.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE 1-----------------------

PS C:\> Disable-SPOFeature -Web "/" -Identity "{7AF6EA6F-2079-4310-B964-210A87F0D5A1}"

Disables a Site scoped Feature on the root Site.

------------------EXAMPLE 2-----------------------

PS C:\> Disable-SPOFeature -Identity "{7AF6EA6F-2079-4310-B964-210A87F0D5A1}"

Disables a Site Collection scoped Feature.