Modifier

Partager via


Select-WebConfiguration

Returns IIS configuration objects.

Syntax

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

Description

The Select-WebConfiguration cmdlet returns information about Internet Information Services (IIS) configuration objects.

Examples

Example 1: Get configuration settings

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

This command returns the configuration collection from the appSettings location. If the specified location does not exist, the cmdlet returns an error.

Parameters

-Filter

Specifies an XPath filter expression.

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