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

Get-PnPFeature

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

Returns all activated or a specific activated feature

Syntax

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

Returns

List

Parameters

ParameterTypeRequiredDescription
IdentityFeaturePipeBindFalseThe feature ID or name to query for, Querying by name is not supported in version 15 of the Client Side Object Model
IncludesString[]FalseSpecify properties to include when retrieving objects from the server.
ScopeFeatureScopeFalseThe scope of the feature. Defaults to Web.
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Get-PnPFeature

This will return all activated web scoped features

Example 2

PS:> Get-PnPFeature -Scope Site

This will return all activated site scoped features

Example 3

PS:> Get-PnPFeature -Identity fb689d0e-eb99-4f13-beb3-86692fd39f22

This will return a specific activated web scoped feature

Example 4

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

This will return a specific activated site scoped feature

© 2017 Microsoft