Add-SPOFileRequestBrandingProfile
透過從現有的組織資產庫指定標誌和背景資產,以新增檔案要求功能的品牌設定檔。
語法
Default (預設值)
Add-SPOFileRequestBrandingProfile
-AssetLibraryUrl <String>
-IsPrimary <Boolean>
[-LogoFileUrl <String>]
[-BackgroundFileUrl <String>]
[<CommonParameters>]
Description
此 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。