powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-WebHandler



NAME
New-WebHandler

SYNOPSIS
Creates a new IIS Request Handler configuration entry.

SYNTAX
New-WebHandler [-Name] -Path -Verb [-Type ] [-Modules ] [-ScriptProcesso
r ] [-Precondition ] [-ResourceType ] [-RequiredAccess ] [-Force] [-Location g[]>] [[-PSPath] ] [-WarningAction ] [-WarningVariable ] []


DESCRIPTION
Creates a new IIS Request Handler configuration entry.


PARAMETERS
-Name
The name of the new handler.

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? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Verb
The HTTP verbs handled by the new handler.

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

-Type
The managed type of the new module (managed modules only).

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

-Modules
Modules used for the handler

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

-ScriptProcessor
The script processor executing for the module.

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

-Precondition
Specifies any preconditions to be used for the new handler.

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

-ResourceType
The resource type this handler executes.

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

-RequiredAccess
The required access permissions for this new handler (Read, Write, Exeute, Script).

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

-Force
Forces creation of the new handler.

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

-Location
Configuration location for which the handler is configured.

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


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: Adding a new handler --------------

C:\PS>New-WebHandler -Name testHandler -Path *.test -Verb 'GET,POST' -Modules IsapiModule -PSPath "IIS:\sites\Defau
lt Web Site"


Adds a new handler named "testHandler" to the Default Web Site.






RELATED LINKS