Skip to content

Instantly share code, notes, and snippets.

Avatar

Beau Cameron bcameron1231

View GitHub Profile
View gist:d832cdc7fdb3d74c26e5df57303cc03c
$sitedesign = Get-SPOSiteDesign | where {$_.Title -eq "Advanced Design"}
[System.Collections.ArrayList]$existingsitescripts = $sitedesign.SiteScriptIds | select -ExpandProperty Guid
$existingsitescripts.Add($sitescript.Id)
Set-SPOSiteDesign -Identity $sitedesign.Id -SiteScripts $existingsitescripts