Get-IisConfigurationSection

Gets a Microsoft.Web.Adminisration configuration section for a given site and path.

Syntax

Get-IisConfigurationSection -SectionPath <String> [-Type <Type>] [<CommonParameters>]

Get-IisConfigurationSection -SiteName <String> [-VirtualPath <String>] -SectionPath <String> [-Type <Type>] [<CommonParameters>]

Description

Uses the Microsoft.Web.Administration API to get a Microsoft.Web.Administration.ConfigurationSection.

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

Parameters

Name Type Description Required? Pipeline Input Default Value
SiteName String

The site where anonymous authentication should be set.

true false
VirtualPath String

The optional site path whose configuration should be returned.

false false
SectionPath String

The path to the configuration section to return.

true false
Type Type

The type of object to return. Optional.

false false Microsoft.Web.Administration.ConfigurationSection

Return Values

Microsoft.Web.Administration.ConfigurationSection.

EXAMPLE 1

Get-IisConfigurationSection -SiteName Peanuts -Path Doghouse -Path 'system.webServer/security/authentication/anonymousAuthentication'

Returns a configuration section which represents the Peanuts site's Doghouse path's anonymous authentication settings.