Add-SPOOrgAssetsLibrary

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

语法

Default (默认值)

Add-SPOOrgAssetsLibrary
    -LibraryUrl <String>
    [-ThumbnailUrl <String>]
    [-OrgAssetType <OrganizationAssetType>]
    [-CdnType <SPOTenantCdnType>]
    [-NoDefaultOrigins]
    [-CopilotSearchable <Boolean>]
    [-WhatIf]
    [-Confirm]
    [<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

适用:SharePoint Online

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

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

参数属性

类型:Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType
默认值:Private
接受的值:Public, Private
支持通配符:False
不显示:False

参数集

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

-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

-NoDefaultOrigins

适用:SharePoint Online

指定是否在激活组织资产功能的 CDN 期间预配默认源。

参数属性

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

参数集

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

-OrgAssetType

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

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

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

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.OrganizationAssetType
默认值:ImageDocumentLibrary
接受的值: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