Edit

Share via


Set-SPOOrgAssetsLibrary

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

Syntax

Default (Default)

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

Description

The Set-SPOOrgAssetsLibrary cmdlet updates information for a library that is designated as a ___location for organization assets. Updating the thumbnail URL and OrgAssetType are currently supported.

Examples

Example 1

This example updates the thumbnail URL publicly displayed for the library to contosologo2.jpg.

Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Assets -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Assets/contosologo2.jpg

Example 2

This example removes the thumbnail URL that was previously set for the library.

Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Assets -ThumbnailURL ""

Example 3

This example changes the OrgAssetType to OfficeTemplateLibrary.

Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Templates -OrgAssetType OfficeTemplateLibrary

Example 4

This example changes the OrgAssetType to "ImageDocumentLibrary,OfficeTemplateLibrary".

Set-SPOOrgAssetsLibrary -LibraryURL sites/branding/Templates -OrgAssetType ImageDocumentLibrary,OfficeTemplateLibrary

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CopilotSearchable

{{ Fill CopilotSearchable Description }}

Parameter properties

Type:System.Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LibraryUrl

Applicable: SharePoint Online

Indicates the server relative URL of the library to be modified.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OrgAssetType

Applicable: SharePoint Online

Indicates the type of content in this library. Currently supported values are "ImageDocumentLibrary" and "OfficeTemplateLibrary".

ImageDocumentLibrary is the default OrgAssetType and is best used for images. You can access the contents of this library from any site or page in the SharePoint filepicker. OfficeTemplateLibrary is the suggested type for Office files and will show up in the UI of all Office desktop apps and Office online in the templates section.

In order to benefit from both UIs you can choose "ImageDocumentLibrary,OfficeTemplateLibrary" as OrgAssetType.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.OrganizationAssetType
Default value:None
Accepted values:ImageDocumentLibrary, OfficeTemplateLibrary, OfficeFontLibrary, BrandKitLibrary
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ThumbnailUrl

Applicable: SharePoint Online

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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object