Skip to content

Commit 0777187

Browse files
committed
Remove -force flag on feature cmdlets
1 parent af9ab72 commit 0777187

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/transform/modernize-userinterface-lists-and-libraries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Maximize use of modern lists and libraries
33
description: Get the maximum number of lists and libraries when using the SharePoint modern user interface.
4-
ms.date: 06/05/2020
4+
ms.date: 04/29/2021
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -88,9 +88,9 @@ Import-Module SharePointPnPPowerShellOnline -DisableNameChecking -MinimumVersion
8888
Connect-PnPOnline -Url "<your site url>"
8989
9090
# Disable the modern list site level blocking feature
91-
Disable-PnPFeature -Identity "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4" -Scope Site -Force
91+
Disable-PnPFeature -Identity "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4" -Scope Site
9292
# Disable the modern list web level blocking feature
93-
Disable-PnPFeature -Identity "52E14B6F-B1BB-4969-B89B-C4FAA56745EF" -Scope Web -Force
93+
Disable-PnPFeature -Identity "52E14B6F-B1BB-4969-B89B-C4FAA56745EF" -Scope Web
9494
```
9595

9696
[!INCLUDE [pnp-powershell](../../includes/snippets/open-source/pnp-powershell.md)]

docs/transform/modernize-userinterface-site-pages-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Transform classic pages to modern pages using .NET
33
description: Explains how to transform classic wiki and web part pages into modern modern pages using the SharePoint .NET
4-
ms.date: 03/16/2021
4+
ms.date: 04/29/2021
55
ms.prod: sharepoint
66
localization_priority: Normal
77
---
@@ -263,7 +263,7 @@ Import-Module PnP.PowerShell -DisableNameChecking -MinimumVersion $minimumVersio
263263
Connect-PnPOnline -Url "<your web url>" -Interactive
264264
265265
# Enable modern page feature
266-
Enable-PnPFeature -Identity "B6917CB1-93A0-4B97-A84D-7CF49975D4EC" -Scope Web -Force
266+
Enable-PnPFeature -Identity "B6917CB1-93A0-4B97-A84D-7CF49975D4EC" -Scope Web
267267
```
268268

269269
[!INCLUDE [pnp-powershell](../../includes/snippets/open-source/pnp-powershell.md)]

docs/transform/modernize-userinterface-site-pages-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Transform classic pages to modern pages using PowerShell
33
description: Explains how to transform classic wiki and web part pages into modern pages using the SharePoint PowerShell
4-
ms.date: 02/11/2021
4+
ms.date: 04/29/2021
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -168,7 +168,7 @@ By default the modern site page capability is enabled on most sites but maybe it
168168
Connect-PnPOnline -Url "<your web url>" -Interactive
169169
170170
# Enable modern page feature
171-
Enable-PnPFeature -Identity "B6917CB1-93A0-4B97-A84D-7CF49975D4EC" -Scope Web -Force
171+
Enable-PnPFeature -Identity "B6917CB1-93A0-4B97-A84D-7CF49975D4EC" -Scope Web
172172
```
173173

174174
## See also

0 commit comments

Comments
 (0)