Get-SSPSiteDesign.ps1
<# .Synopsis Gets a SOP Site Design using PnP from the site/tennant. .Description This CmdLet gets an existing site design(s). .Parameter Title This parameter contains the title of the Site Design. Site designs are referenced by their title. If not specified the return is all of the site designs. .Parameter Connection This parameter provides the context for the call. The default is the current connection returned by "Get-PnPConnection". #> function Get-SSPSiteDesign { param( $title, $connection = (Get-PnPConnection) ) $siteDesigns = Get-PnPSiteDesign -Connection $connection -ErrorAction SilentlyContinue if ($siteDesigns) { $siteDesigns = $siteDesigns | Where-Object { $_.Title -eq $title } } return $siteDesigns } |