Set-SPOTenantCdnEnabled
在租户一级启用或禁用公用内容传送网络 (CDN) 或专用 CDN。 需要租户管理员权限。
语法
Set-SPOTenantCdnEnabled
[-CdnType <SPOTenantCdnTypeClient>]
[-Confirm]
[-Enable <Boolean>]
[-NoDefaultOrigins]
[-WhatIf]
[<CommonParameters>]
说明
在租户一级启用或禁用公用内容传送网络 (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