Commands › SharePoint Online

Set-SPOOrgAssetsLibrary

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

Updates information for a library that is designated as a location for organization assets.

Quick start script

# Set-SPOOrgAssetsLibrary — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOOrgAssetsLibrary
$before | Format-List

# 3. Make the change (dry run first)
Set-SPOOrgAssetsLibrary -LibraryUrl <String> -WhatIf
Set-SPOOrgAssetsLibrary -LibraryUrl <String>

# 4. Verify and diff
$after = Get-SPOOrgAssetsLibrary
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-SPOOrgAssetsLibrary -LibraryUrl <String> [-ThumbnailUrl <String>] [-OrgAssetType <OrganizationAssetType>]
 [-CopilotSearchable <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-CopilotSearchable Boolean Specifies whether the library is made available to Microsoft 365 Copilot Search.
-LibraryUrl String yes Indicates the server relative URL of the library to be modified.
-OrgAssetType OrganizationAssetType Indicates the type of content in this library. Currently supported values are "ImageDocumentLibrary" and "OfficeTemplateLibrary".
-ThumbnailUrl String Indicates the URL of the background image used when the library is publicly displayed. If no thumbnail URL is indicated, the card will have a gray background.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.