Skip to content

Instantly share code, notes, and snippets.

View bcameron1231's full-sized avatar

Beau Cameron bcameron1231

View GitHub Profile
$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