diff --git a/CHANGELOG.md b/CHANGELOG.md index aacad8ce4..94f84068c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,6 +104,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Removed `-Title` and `-Header` parameters from `Remove-PnPNavigationNode`. They were marked obsolete. - Removed `-FileUrl` parameter from `Get-PnPSharingLink`. It was marked obsolete. - Removed `-WebLogin` parameter from `Connect-PnPOnline` cmdlet. It was marked obsolete and was a security risk. +- Removed `Set-PnPMinimalDownloadStrategy` as it's not applicable anymore to SharePoint Online. If you need the functionality you can always turn on the feature with `Enable-PnPFeature -Id 87294c72-f260-42f3-a41b-981a2ffce37a` or turn it off with `Disable-PnPFeature -Id 87294c72-f260-42f3-a41b-981a2ffce37a` ### Contributors diff --git a/MIGRATE-2.0-to-3.0.md b/MIGRATE-2.0-to-3.0.md index df75d0bad..bbbd5f5f4 100644 --- a/MIGRATE-2.0-to-3.0.md +++ b/MIGRATE-2.0-to-3.0.md @@ -64,6 +64,8 @@ Recommend referring to these 2 links: | Connect-PnPOnline | Removed `-LaunchBrowser` option for Device Login flows. It is the default now. | | Register-PnPEntraIDApp | Removed `-LaunchBrowser`, `-NoPopup` and credential based auth. The default auth method is now Interactive.| | Register-PnPEntraIDAppForInteractiveLogin | Removed `-LaunchBrowser`, `-NoPopup` and credential based auth. The default auth method is now Interactive.| +| Set-PnPMinimalDownloadStrategy | Removed cmdlet. If you need the functionality you can always turn on the feature with `Enable-PnPFeature -Id 87294c72-f260-42f3-a41b-981a2ffce37a` or turn it off with `Disable-PnPFeature -Id 87294c72-f260-42f3-a41b-981a2ffce37a` | + ## Other notable changes ## Changes to output type diff --git a/documentation/Set-PnPMinimalDownloadStrategy.md b/documentation/Set-PnPMinimalDownloadStrategy.md deleted file mode 100644 index f834bdf5c..000000000 --- a/documentation/Set-PnPMinimalDownloadStrategy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -Module Name: PnP.PowerShell -title: Set-PnPMinimalDownloadStrategy -schema: 2.0.0 -applicable: SharePoint Online -external help file: PnP.PowerShell.dll-Help.xml -online version: https://pnp.github.io/powershell/cmdlets/Set-PnPMinimalDownloadStrategy.html ---- - -# Set-PnPMinimalDownloadStrategy - -## SYNOPSIS -Activates or deactivates the minimal downloading strategy. - -## SYNTAX - -### On -```powershell -Set-PnPMinimalDownloadStrategy [-On] [-Force] [-Connection ] - -``` - -### Off -```powershell -Set-PnPMinimalDownloadStrategy [-Off] [-Force] [-Connection ] - -``` - -## DESCRIPTION -Activates or deactivates the minimal download strategy feature of a site. - -## EXAMPLES - -### EXAMPLE 1 -```powershell -Set-PnPMinimalDownloadStrategy -Off -``` - -Will deactivate minimal download strategy (MDS) for the current web. - -### EXAMPLE 2 -```powershell -Set-PnPMinimalDownloadStrategy -On -``` - -Will activate minimal download strategy (MDS) for the current web. - -## 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. - -```yaml -Type: PnPConnection -Parameter Sets: (All) - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Force -Specifies whether to overwrite (when activating) or continue (when deactivating) 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 -``` - -### -Off -Turn minimal download strategy off. - -```yaml -Type: SwitchParameter -Parameter Sets: Off - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -On -Turn minimal download strategy on. - -```yaml -Type: SwitchParameter -Parameter Sets: On - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - - - -## RELATED LINKS - -[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - diff --git a/src/Commands/Branding/SetMinimalDownloadStrategy.cs b/src/Commands/Branding/SetMinimalDownloadStrategy.cs deleted file mode 100644 index 9321cae9d..000000000 --- a/src/Commands/Branding/SetMinimalDownloadStrategy.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Management.Automation; -using Microsoft.SharePoint.Client; - - -namespace PnP.PowerShell.Commands.Branding -{ - [Cmdlet(VerbsCommon.Set, "PnPMinimalDownloadStrategy")] - public class SetMinimalDownloadStrategy : PnPWebCmdlet - { - [Parameter(ParameterSetName = "On", Mandatory = true)] - public SwitchParameter On; - - [Parameter(ParameterSetName = "Off", Mandatory = true)] - public SwitchParameter Off; - - [Parameter(Mandatory = false)] - public SwitchParameter Force; - - protected override void ExecuteCmdlet() - { - if (On) - { - CurrentWeb.Features.Add(PnP.Framework.Constants.FeatureId_Web_MinimalDownloadStrategy, Force, FeatureDefinitionScope.None); - } - else - { - CurrentWeb.Features.Remove(PnP.Framework.Constants.FeatureId_Web_MinimalDownloadStrategy, Force); - } - ClientContext.ExecuteQueryRetry(); - } - } - -}