Skip to content

Latest commit

 

History

History
138 lines (103 loc) · 2.76 KB

Set-KshTenantCdnPolicy.md

File metadata and controls

138 lines (103 loc) · 2.76 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Set-KshTenantCdnPolicy

SYNOPSIS

Changes Office 365 CDN policy.

SYNTAX

ParamSet1

Set-KshTenantCdnPolicy [-Public] -Type <TenantCdnPolicyType> -Value <String>
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet2

Set-KshTenantCdnPolicy [-Private] -Type <TenantCdnPolicyType> -Value <String>
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Set-KshTenantCdnPolicy cmdlet changes the value of Office 365 CDN policy. This cmdlet can be used only when connected to the SharePoint admin center.

EXAMPLES

Example 1

PS C:\> Set-KshTenantCdnPolicy -Public -Type 'IncludeFileExtensions' -Value 'CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF'

Changes Office 365 Public CDN policy.

Example 2

PS C:\> Set-KshTenantCdnPolicy -Private -Type 'IncludeFileExtensions' -Value 'GIF,ICO,JPEG,JPG,JS,PNG'

Changes Office 365 Private CDN policy.

PARAMETERS

-Private

If specified, targets Office 365 Private CDN.

Type: SwitchParameter
Parameter Sets: ParamSet2
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Public

If specified, targets Office 365 Public CDN.

Type: SwitchParameter
Parameter Sets: ParamSet1
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Type

Specifies the policy type.

Type: TenantCdnPolicyType
Parameter Sets: (All)
Aliases:
Accepted values: IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Value

Specifies the value.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

NOTES

RELATED LINKS