Get-WebConfigurationLocation

Gets the location of a specified configuration setting.

Syntax

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

Description

Gets the location of a specified configuration setting.

Examples

-------------- EXAMPLE 1: Get location tags --------------

IIS:\>Get-WebConfigurationLocation

Returns all locations that are configured by using location tags.

Optional Parameters

-Name

Specifies the name of the configuration location. All locations are returned if theNameparameter is not specified.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PSPath

An IIS configuration path to the location.

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

If theRecurseparameter is used, locations within the hierarchy of the specified location are also returned.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False