Remove-Web
Handler
Syntax
Remove-WebHandler
[-Name] <String>
[-Location <String[]>]
[[-PSPath] <String[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-WebHandler cmdlet removes a request handler from Internet Information Services (IIS).
Examples
Example 1: Remove a handler
IIS:\> Remove-WebHandler -Name "TestHandler" -PSPath "IIS:\sites\Default Web Site"
This command removes the request handler named TestHandler from the default website.
Required Parameters
Specifies 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
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 |
Specifies 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 |
Specifies an IIS configuration path to the location.
Type: | String[] |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
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 |