Edit

Share via


Get-WebConfigurationLocation

Gets the location of a configuration setting.

Syntax

Default (Default)

Get-WebConfigurationLocation
    [[-Name] <String>]
    [-Recurse]
    [[-PSPath] <String[]>]
    [<CommonParameters>]

Description

The Get-WebConfigurationLocation cmdlet gets the location of a specified configuration setting.

Examples

Example 1: Get location tags

IIS:\> Get-WebConfigurationLocation

This command returns all locations that are configured by using location tags.

Parameters

-Name

Specifies the name of the configuration location. If you do not specify this parameter, this cmdlet gets all locations.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-PSPath

Specifies an IIS configuration path to the location.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Recurse

Indicates that this cmdlet returns locations within the hierarchy of the specified location.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
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.