Add-SPOOrgAssetsLibrary

指定要用作整个租户中组织资产的中心位置的库。

语法

Add-SPOOrgAssetsLibrary
   -LibraryUrl <String>
   [-ThumbnailUrl <String>]
   [-OrgAssetType <OrgAssetType>]
   [-CdnType <SPOTenantCdnType>]
   [<CommonParameters>]

说明

Add-SPOOrgAssetsLibrary cmdlet 将库指定为整个租户中的组织资产的中心位置。 运行此 cmdlet 后,存储在此库中的资产可供整个租户中的站点使用。 为库公开显示的名称将是组织的名称。 请注意,可能需要几个小时到一天才能反映更改。

示例

示例 1

此示例添加 https://contoso.sharepoint.com/sites/branding/Assets 为组织资产的指定库。 资产是添加的 SharePoint 库的名称。 该库公开显示的缩略图 contosologo.jpg 同一库中。

Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/branding/Assets -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Assets/contosologo.jpg

示例 2

此示例添加 https://contoso.sharepoint.com/sites/branding/Templates 为组织资产的指定库。 模板是添加的 SharePoint 库的名称,将是库公开显示的名称。 该库公开显示的缩略图 contosologo.jpg 同一库中。 OrgAssetType 是 SharePoint 库的类型。

Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/branding/Templates -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Templates/contosologo.jpg -OrgAssetType OfficeTemplateLibrary

参数

-CdnType

指定 CDN 类型。 有效值为 public 或 private。

注意:手动配置的专用 CDN 正在弃用。 有关详细信息,请参阅将 Office 365 内容分发网络 (CDN) 与 SharePoint Online 配合使用

类型:SPOTenantCdnType
接受的值:Public, Private
Position:Named
默认值:Private
必需:False
接受管道输入:False
接受通配符:False
适用于:SharePoint Online

-LibraryUrl

指示要指定为组织资产的中心位置的库的绝对 URL。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False
适用于:SharePoint Online

-OrgAssetType

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

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

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

类型:OrgAssetType
接受的值:ImageDocumentLibrary, OfficeTemplateLibrary
Position:Named
默认值:ImageDocumentLibrary
必需:False
接受管道输入:False
接受通配符:False
适用于:SharePoint Online

-ThumbnailUrl

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

类型:String
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False
适用于:SharePoint Online