Add-SPOFileRequestBrandingProfile
透過指定現有組織資產庫中的標誌和背景資產,為檔案請求功能新增品牌設定檔。
語法
Default (預設值)
Add-SPOFileRequestBrandingProfile
-AssetLibraryUrl <String>
-IsPrimary <Boolean>
[-LogoFileUrl <String>]
[-BackgroundFileUrl <String>]
[<CommonParameters>]
Description
此 Cmdlet 會註冊品牌配置檔,以用於跨租用戶的檔案要求功能。 您必須指定儲存品牌資產的現有組織資產庫URL,並指出是否應將設定檔指定為主要設定檔。 每個租用戶可以有一個主要和一個次要設定檔。 所使用的組織資產庫必須設定為 CdnType 為 “Public” (如需詳細資訊) 請參閱 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。