Set-SPOTenantCdnEnabled

在租户一级启用或禁用公用内容传送网络 (CDN) 或专用 CDN。 需要租户管理员权限。

语法

Default (默认值)

Set-SPOTenantCdnEnabled
    [-Enable <Boolean>]
    [-CdnType <SPOTenantCdnTypeClient>]
    [-NoDefaultOrigins]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

在租户一级启用或禁用公用内容传送网络 (CDN) 或专用 CDN。

示例

示例 1

Set-SPOTenantCdnEnabled -CdnType public -Enable $true

此示例启用 CDN。

参数

-CdnType

适用:SharePoint Online

指定 CDN 类型。 有效值为:public 或 private。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.SPOTenantCdnTypeClient
默认值:None
接受的值:Public, Private, Both
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

适用:SharePoint Online

提示你在运行 cmdlet 之前进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Enable

适用:SharePoint Online

指定 CDN 是否已启用。

有效值为:$True和$False。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-NoDefaultOrigins

适用:SharePoint Online

PARAMVALUE:SwitchParameter

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

适用:SharePoint Online

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值: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

输入

None

输出

System.Object