Get-PnPFeature

Returns all activated or a specific activated feature

Syntax

Get-PnPFeature
   [-Includes <String[]>]
                 [-Identity <FeaturePipeBind>]
                 [-Scope <FeatureScope>]
                 [-Web <WebPipeBind>]
                 [-Connection <SPOnlineConnection>]

Examples

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

Get-PnPFeature

This will return all activated web scoped features

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

Get-PnPFeature -Scope Site

This will return all activated site scoped features

------------------EXAMPLE 3------------------

Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22

This will return a specific activated web scoped feature

------------------EXAMPLE 4------------------

Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22 -Scope Site

This will return a specific activated site scoped feature

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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The feature ID or name to query for, Querying by name is not supported in version 15 of the Client Side Object Model

Type:FeaturePipeBind
Position:0
Accept pipeline input:True
Accept wildcard characters:False
-Includes

Specify properties to include when retrieving objects from the server.

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False
-Scope

The scope of the feature. Defaults to Web.

Type:FeatureScope
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Web

The web to apply the command to. Omit this parameter to use the current web.

Type:WebPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

List<Microsoft.SharePoint.Client.Feature>