Select-WebConfiguration
Returns IIS configuration objects.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.