Skip to content

Get-SiteDesignRunStatus

SharePoint Online: Gets site design run status

#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param([Parameter(Mandatory = $true)][guid]$RunId, [Parameter(Mandatory = $true)][string]$WebUrl)
Process {
    try {
        $result = Get-SPOSiteDesignRunStatus -RunId $RunId -WebUrl $WebUrl -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
    }
    catch { throw }
}

Run identifier

Site URL

An interactive directory of PowerShell scripts.