With the next PnP PowerShell script, you will be able to Enable the SharePoint Server Publishing Infrastructure on your SharePoint site to have access to some features that you may need. This process will change your SharePoint site structure so please be aware of that when executing this script. This script is valid for SharePoint Online and SharePoint 2019.
If you intend to go back to the original settings of the site, you just need to replace the Enable for Disable on the below command.
Connect-PnPOnline -url https://contoso.sharepoint.com/sites/PublishingTeamSite
Enable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -force -Scope web #SharePoint Server Publishing Infrastructure of Site
Enable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -force -Scope site #SharePoint Server Publishing Infrastructure of Site Collection
Conclusion
You will start to see the publishing features on your Modern Team Site. If you’re trying to apply this to a Communication, please check the next blog post:
If you intend to know the details of what gonna be unlock, take a look at the below link:
Be First to Comment