powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-WebHandler



NAME
Set-WebHandler

SYNOPSIS
Configures an IIS Request Handler.

SYNTAX
Set-WebHandler [-Name] [-Path ] [-Verb ] [-Type ] [-Modules ] [-ScriptProc
essor ] [-Precondition ] [-ResourceType ] [-RequiredAccess ] [-Location ]
[[-PSPath] ] [-WarningAction ] [-WarningVariable ] [-WhatIf] [-Confirm] [ onParameters>]


DESCRIPTION
Configures an IIS Request Handler.


PARAMETERS
-Name
The name of the handler to configure.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Path
The physical path to the handler (native modules only).

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Verb
HTTP Verbs for which the handler is executed.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Type
Managed Type (managed handlers only).

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Modules
Modules needed for the handler (native handlers only).

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ScriptProcessor
Script processor to execute for the handler (native handlers only).

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Precondition
Preconditions for the new handler.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ResourceType
Resource type required.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-RequiredAccess
Access permissions required for the module (Script, Read, Write, Execute).

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Location
Location in which to set this configuration.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-PSPath
An IIS configuration path.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- EXAMPLE 1: Changing a property of a handler --------------

C:\PS>Set-WebHandler -Name StaticFile -Path "*.htm"


Changes a property of a handler.






RELATED LINKS