plugin |
---|
add-to-gallery |
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.
#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]
Author(s) |
---|
Kasper Larsen |
[!INCLUDE DISCLAIMER]