Last active
May 25, 2022 13:41
-
-
Save aflyen/dd98179de41d503bbabc0d95822bc704 to your computer and use it in GitHub Desktop.
Hide the template gallery from modern team and communication sites in SharePoint Online using PowerShell and PnP.Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/project101 | |
$Web = Get-PnPWeb -Includes WebTemplatesGalleryFirstRunEnabled | |
$Web.WebTemplatesGalleryFirstRunEnabled = $false | |
$Web.Update() | |
Invoke-PnPQuery |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment