Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.14 KB

File metadata and controls

38 lines (24 loc) · 1.14 KB
plugin
add-to-gallery

Disable Web Templates Gallery First Run Dialog

Summary

When accessing a newly created site collection in SharePoint Online, you are presented with a dialog to select a web template. This script will disable this dialog.

Example Screenshot

#connect to the site collection using one of the many options available in PnP PowerShell
$localConn = Connect-PnPOnline -Url $siteUrl -ClientId $ClientId -CertificateBase64Encoded $CertificateBase64Encoded -Tenant $TenantName -ReturnConnection -erroraction stop
                
$Web = Get-PnPWeb -Includes WebTemplatesGalleryFirstRunEnabled -connection $localConn
$Web.WebTemplatesGalleryFirstRunEnabled = $false
$Web.Update()
Invoke-PnPQuery -connection $localConn        

[!INCLUDE More about PnP PowerShell]


Contributors

Author(s)
Kasper Larsen

[!INCLUDE DISCLAIMER]