Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

New-WebHandler

Windows Server 2012 R2 and Windows 8.1

New-WebHandler

Creates an IIS request handler.

Syntax

Parameter Set: Default
New-WebHandler [-Name] <String> [[-PSPath] <String[]> ] -Path <String> -Verb <String> [-Force] [-Location <String[]> ] [-Modules <String> ] [-Precondition <String> ] [-RequiredAccess <String> ] [-ResourceType <String> ] [-ScriptProcessor <String> ] [-Type <String> ] [ <CommonParameters>]




Detailed Description

The New-WebHandler cmdlet creates an Internet Information Services (IIS) request handler.

Parameters

-Force

Forces the creation of the new handler.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Location<String[]>

Specifies the configuration location in which the handler is configured.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Modules<String>

Specifies the modules used for the handler.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the new request handler.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-PSPath<String[]>

Specifies an IIS configuration path.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Path<String>

Specifies the physical path to the handler. This parameter applies to native modules only.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Precondition<String>

Specifies preconditions for the new handler.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-RequiredAccess<String>

Specifies the user rights that are required for the new handler. The acceptable values for this parameter are:

-- Read
-- Write
-- Execute
-- Script


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ResourceType<String>

Specifies the resource type this handler runs.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ScriptProcessor<String>

Specifies the script processor that runs for the module.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Type<String>

Specifies the managed type of the new module. This parameter applies to managed modules only.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Verb<String>

Specifies the HTTP verbs that are handled by the new handler.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example -------------- EXAMPLE Example 1: Add a new handler --------------

This command adds a handler named TestHandler to the default website.


IIS:\>New-WebHandler -Name "TestHandler" -Path "*.test" -Verb 'GET,POST' -Modules "IsapiModule" -PSPath "IIS:\sites\Default Web Site"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft