Edit

Share via


Get-WebHandler

Gets IIS request handlers.

Syntax

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.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of a handler to get.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PSPath

Specifies an IIS configuration path.

Type:String[]
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False