Skip to content

Commit db207f1

Browse files
committed
script update
1 parent a56836f commit db207f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,6 @@ ConvertTo-PnPPage -Identity pageinroot.aspx -Overwrite -Folder "<root>"
165165
By default the modern site page capability is enabled on most sites but maybe it was turned off afterwards. If that's the case the [SharePoint Modernization scanner](https://aka.ms/sppnp-modernizationscanner) will tell you which sites have turned of the modern page feature. To remediate this use below sample PnP PowerShell script:
166166

167167
```PowerShell
168-
$minimumVersion = New-Object System.Version("2.24.1803.0")
169-
if (-not (Get-InstalledModule -Name SharePointPnPPowerShellOnline -MinimumVersion $minimumVersion -ErrorAction Ignore))
170-
{
171-
Install-Module SharePointPnPPowerShellOnline -MinimumVersion $minimumVersion -Scope CurrentUser
172-
}
173-
Import-Module SharePointPnPPowerShellOnline -DisableNameChecking -MinimumVersion $minimumVersion
174-
175168
Connect-PnPOnline -Url "<your web url>" -Interactive
176169
177170
# Enable modern page feature

0 commit comments

Comments
 (0)