Add-SPOFileRequestBrandingProfile
通过指定现有组织资产库中的徽标和后台资产,为文件请求功能添加品牌配置文件。
语法
Default (默认值)
Add-SPOFileRequestBrandingProfile
-AssetLibraryUrl <String>
-IsPrimary <Boolean>
[-LogoFileUrl <String>]
[-BackgroundFileUrl <String>]
[<CommonParameters>]
说明
此 cmdlet 注册要用于整个租户的文件请求功能的品牌配置文件。 必须指定用于存储品牌资产的现有组织资产库 URL,并指示是否应将配置文件指定为主配置文件。 每个租户可以有一个主要配置文件和一个辅助配置文件。 使用的组织资产库必须配置 CdnType 为“公共” (请参阅 Add-SPOOrgAssetsLibrary 以获取) 的详细信息。
示例
示例 1
Add-SPOFileRequestBrandingProfile -AssetLibraryUrl "https://contoso.sharepoint.com/sites/branding/Assets" -LogoFileUrl "/sites/branding/Assets/LogoA.jpg" -BackgroundFileUrl "/sites/branding/Assets/BackgroundA.jpg" -IsPrimary $true
此示例将 设置为 https://contoso.sharepoint.com/sites/branding/Assets/ 包含文件请求页的品牌图像的组织资产库。 它使用 LogoA.jpg 和 BackgroundA.jpg 添加品牌配置文件,其相对于服务器的路径通过 LogoFileUrl 和 BackgroundFileUrl 参数提供。 标志 -IsPrimary 指示是否应将此配置文件视为租户的主要品牌配置文件。 在此示例中,配置文件设置为主配置文件。
示例 2
Add-SPOFileRequestBrandingProfile -AssetLibraryUrl "https://contoso.sharepoint.com/sites/branding/Assets" -LogoFileUrl "/sites/branding/Assets/LogoB.jpg" -BackgroundFileUrl "/sites/branding/Assets/BackgroundB.jpg" -IsPrimary $false
此示例将 设置为 https://contoso.sharepoint.com/sites/branding/Assets/ 包含文件请求页的品牌图像的组织资产库。 它使用 LogoB.jpg 和 BackgroundB.jpg 添加品牌配置文件,其相对于服务器的路径通过 LogoFileUrl 和 BackgroundFileUrl 参数提供。 标志 -IsPrimary 指示是否应将此配置文件视为租户的主要品牌配置文件。 在此示例中,配置文件未设置为主配置文件。
参数
-AssetLibraryUrl
适用:SharePoint Online
指定包含品牌资产的资产库的绝对 URL。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-BackgroundFileUrl
指定背景图像文件的相对 URL。
参数属性
| 类型: | System.String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-IsPrimary
指定此品牌配置文件配置是否为主配置文件。
参数属性
| 类型: | System.Boolean |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-LogoFileUrl
指定徽标图像文件的相对 URL。
参数属性
| 类型: | System.String |
| 默认值: | 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。