Unlock-IisConfigurationSection

Unlocks a section in the IIS server configuration.

Syntax

Unlock-IisConfigurationSection [-SectionPath] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Some sections/areas are locked by IIS, so that websites can't enable those settings, or have their own custom configurations. This function will unlocks those locked sections. You have to know the path to the section. You can see a list of locked sections by running:

C:\Windows\System32\inetsrv\appcmd.exe unlock config /section:?

Beginning with Carbon 2.0.1, this function is available only if IIS is installed.

Parameters

Name Type Description Required? Pipeline Input Default Value
SectionPath String[]

The path to the section to unlock. For a list of sections, run

C:\Windows\System32\inetsrv\appcmd.exe unlock config /section:?
true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Unlock-IisConfigSection -Name 'system.webServer/cgi'

Unlocks the CGI section so that websites can configure their own CGI settings.