diff --git a/documentation/Enable-PnPFeature.md b/documentation/Enable-PnPFeature.md index 00d6d223e..3f1269265 100644 --- a/documentation/Enable-PnPFeature.md +++ b/documentation/Enable-PnPFeature.md @@ -34,13 +34,6 @@ This will enable the feature with the id "99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" ### EXAMPLE 2 ```powershell -Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Force -``` - -This will enable the feature with the id "99a00f6e-fb81-4dc7-8eac-e09c6f9132fe" with force. - -### EXAMPLE 3 -```powershell Enable-PnPFeature -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe -Scope Web ``` @@ -62,20 +55,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Force -Specifies whether to overwrite an existing feature with the same feature identifier. This parameter is ignored if there are no errors. - -```yaml -Type: SwitchParameter -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. @@ -90,20 +69,6 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Sandboxed -Specify this parameter if the feature you're trying to activate is part of a sandboxed solution. - -```yaml -Type: SwitchParameter -Parameter Sets: (All) - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Scope Specify the scope of the feature to activate, either Web or Site. Defaults to Web. @@ -119,8 +84,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` - - ## RELATED LINKS [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) diff --git a/src/Commands/Features/EnableFeature.cs b/src/Commands/Features/EnableFeature.cs index 4e58c1e96..cc50e6fec 100644 --- a/src/Commands/Features/EnableFeature.cs +++ b/src/Commands/Features/EnableFeature.cs @@ -11,6 +11,7 @@ public class EnableFeature : PnPWebCmdlet [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true)] public Guid Identity; + [Obsolete("The Force parameter is obsolete and will be removed in future versions. Please update your scripts accordingly.")] [Parameter(Mandatory = false)] public SwitchParameter Force;