Set-SPOOrgAssetsLibrary

汇报指定为组织资产位置的库的信息。

语法

Default (默认值)

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

说明

Set-SPOOrgAssetsLibrary cmdlet 更新指定为组织资产位置的库的信息。 当前支持更新缩略图 URL 和 OrgAssetType。

示例

示例 1

此示例更新为库公开显示的缩略图 URL 以 contosologo2.jpg。

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

示例 2

此示例删除以前为库设置的缩略图 URL。

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

示例 3

此示例将 OrgAssetType 更改为 OfficeTemplateLibrary。

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

示例 4

本示例将 OrgAssetType 更改为“ImageDocumentLibrary,OfficeTemplateLibrary”。

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

参数

-Confirm

提示你在运行 cmdlet 之前进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-CopilotSearchable

适用:SharePoint Online

指定库是否可用于智能 Microsoft 365 Copilot 副驾驶®搜索。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LibraryUrl

适用:SharePoint Online

指示要修改的库的服务器相对 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-OrgAssetType

适用:SharePoint Online

指示此库中的内容类型。 当前支持的值为“ImageDocumentLibrary”和“OfficeTemplateLibrary”。

ImageDocumentLibrary 是默认的 OrgAssetType,最适合用于图像。 可以从 SharePoint 文件库中的任何网站或页面访问此库的内容。 OfficeTemplateLibrary 是 Office 文件的建议类型,将显示在模板部分中所有 Office 桌面应用的 UI 和 Office Online 中。

为了从这两个 UI 中受益,可以选择“ImageDocumentLibrary,OfficeTemplateLibrary”作为 OrgAssetType。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.OrganizationAssetType
默认值:None
接受的值:ImageDocumentLibrary, OfficeTemplateLibrary, OfficeFontLibrary, BrandKitLibrary
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ThumbnailUrl

适用:SharePoint Online

指示公开显示库时使用的背景图像的 URL。 如果未指示缩略图 URL,则卡将具有灰色背景。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:无线

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object