Remove-WebHandler

Removes a request handler from IIS.

Syntax

Remove-WebHandler
      [-Name] <String>
      [-Location <String[]>]
      [[-PSPath] <String[]>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes a request handler from IIS.

Examples

-------------- EXAMPLE 1: Remove a handler --------------

IIS:\>Remove-WebHandler -Name testHandler -PSPath "IIS:\sites\Default Web Site"

Removes the request handler named testHandler from the Default Web Site.

Required Parameters

-Name

The name of the handler to remove.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Location

The configuration location from which the handler is removed.

Type:String[]
Position:Named
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
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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