Skip to content

Get-SPOOrgAssetsLibrary

SharePoint Online: Displays information about all libraries designated as locations for organization assets

#Requires -Version 5.1

[CmdletBinding()]
Param(

)

Process {
    try {
        $result = Get-SPOOrgAssetsLibrary -ErrorAction Stop | Select-Object *
                Write-Output $result

        if ($null -eq $result -or $result.Count -eq 0) { Write-Output "No results found"; return }
        foreach ($item in $result) { $item | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format 'yyyy-MM-dd HH:mm:ss') -PassThru -Force }
    }
    catch { throw }
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.