Table of contents
TOC
Collapse the table of content
Expand the table of content

Disable-PnPFeature

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Disables a feature

Syntax

Disable-PnPFeature -Identity <GuidPipeBind>
                   [-Force [<SwitchParameter>]]
                   [-Scope <FeatureScope>]
                   [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
IdentityGuidPipeBindTrueThe id of the feature to disable.
ForceSwitchParameterFalseForcibly disable the feature.
ScopeFeatureScopeFalseSpecify the scope of the feature to deactivate, either Web or Site. Defaults to Web.
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe

This will disable the feature with the id "99a00f6e-fb81-4dc7-8eac-e09c6f9132fe"

Example 2

PS:> Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force

This will disable the feature with the id "99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" with force.

Example 3

PS:> Disable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web

This will disable the feature with the id "99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" with the web scope.

© 2017 Microsoft