Forum Discussion
Enable modern site pages
- Mar 16, 2017
I had the same problem. I had to activate the SitePage feature in the site settings (see attached pic)
Hi, from a functional perspective, what exactly does this script do? Does it enable a certain feature or does it directly make a specific site collection as root site collection ... ?
Thanks for your feedback!
This script enables the feature in the target site. With PNP powershell cmdlets we can achieve this just in few lines. Please refer to the script using pnp cmdlets below.
# Connect to a site
$cred = Get-Credential
Connect-PnPOnline -Url <Site URL> -Credentials $cred
# Enable site pages feature at web
Enable-PnPFeature -Identity B6917CB1-93A0-4B97-A84D-7CF49975D4EC -Scope Web
- matt howellApr 30, 2019Brass Contributor
Rajashekhar Sheelvant This is the usual muddled, poorly designed user experience we've come to expect from Msft. No competent company would release 2 incompatible parallel ui's into production environments. None of the questions asked here should have to be asked. Total fail.