Skip to content

Get-OrgAssetsLibrary

SharePoint Online: Gets org assets library

#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell

Process {
    try {
        $result = Get-SPOOrgAssetsLibrary -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { 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.