Table of Contents

Enable-PnPFeature

SYNOPSIS

Enables a feature

SYNTAX

Enable-PnPFeature [-Identity] <Guid> [-Force] [-Scope <FeatureScope>] [-Sandboxed] 
 [-Connection <PnPConnection>] 

DESCRIPTION

Allows to enable to feature.

EXAMPLES

EXAMPLE 1

Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe

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

EXAMPLE 2

Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web

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

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identity

The id of the feature to enable.

Type: Guid
Parameter Sets: (All)

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Scope

Specify the scope of the feature to activate, either Web or Site. Defaults to Web.

Type: FeatureScope
Parameter Sets: (All)
Accepted values: Web, Site

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices