Select-WebConfiguration

Returns Web configuration objects.

Syntax

Select-WebConfiguration
      [-Filter] <String[]>
      [<CommonParameters>]

Description

Returns information about IIS configuration objects.

Examples

-------------- EXAMPLE 1: Get configuration settings --------------

IIS:\>Select-WebConfiguration "get-config(MACHINE/WEBROOT/APPHOST/testSite)/appSettings"

Returns the configuration collection from the appSettings location. The specified location must exist or an error is returned.

Required Parameters

-Filter

An XPath filter.

Type:String[]
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False