Set-SPOTenantCdnEnabled
啟用或停用租用戶層級上的公用內容傳遞網路 (CDN) 或私人 CDN。 需要租使用者系統管理員許可權。
Syntax
Set-SPOTenantCdnEnabled
[-CdnType <SPOTenantCdnTypeClient>]
[-Confirm]
[-Enable <Boolean>]
[-NoDefaultOrigins]
[-WhatIf]
[<CommonParameters>]
Description
啟用或停用租用戶層級上的公用內容傳遞網路 (CDN) 或私人 CDN。
範例
-----------------------範例 1-----------------------------
Set-SPOTenantCdnEnabled -CdnType public -Enable $true
此範例會啟用 CDN。
參數
-CdnType
指定 CDN 類型。 有效值為:public 或 private。
Type: | SPOTenantCdnTypeClient |
Accepted values: | Public, Private, Both |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Confirm
執行 Cmdlet 之前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Enable
指定是否啟用 CDN。
有效值為:$True 和 $False。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoDefaultOrigins
PARAMVALUE:SwitchParameter
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
輸入
None
輸出
System.Object