Edit

Share via


Get-WebHandler

Gets IIS request handlers.

Syntax

Default (Default)

Get-WebHandler
    [[-Name] <String>]
    [-Location <String[]>]
    [[-PSPath] <String[]>]
    [<CommonParameters>]

Description

The Get-WebHandler cmdlet gets Internet Information Services (IIS) request handlers. If you specify the Name parameter, information is returned for the specified handler.

Examples

Example 1: Get the handler section

IIS:\> Get-WebHandler -PSPath "IIS:\Sites\Default Web Site"

This command gets handlers configured for the default website.

Parameters

-Location

Specifies the location for which the cmdlet returns handler information.

Parameter properties

Type:

String[]

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:True
Value from remaining arguments:False

-Name

Specifies the name of a handler to get.

Parameter properties

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

Parameter sets

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

-PSPath

Specifies an IIS configuration path.

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

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.