Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Select-WebConfiguration

Brian Lich|Last Updated: 4/3/2017

SYNOPSIS

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[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
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

OUTPUTS

NOTES

Add-WebConfiguration

Backup-WebConfiguration

Clear-WebConfiguration

Get-WebConfiguration

Restore-WebConfiguration

Set-WebConfiguration

© 2017 Microsoft