New-WebHandler

New-WebHandler

Creates an IIS request handler.

Sintaxis

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>]

Descripción detallada

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

Parámetros

-Force

Forces the creation of the new handler.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Location<String[]>

Specifies the configuration location in which the handler is configured.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Modules<String>

Specifies the modules used for the handler.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Name<String>

Specifies the name of the new request handler.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-PSPath<String[]>

Specifies an IIS configuration path.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Path<String>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Precondition<String>

Specifies preconditions for the new handler.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-RequiredAccess<String>

Specifies the user rights that are required for the new handler. Los valores aceptables para este parámetro son los siguientes:

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ResourceType<String>

Specifies the resource type this handler runs.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ScriptProcessor<String>

Specifies the script processor that runs for the module.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Type<String>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Verb<String>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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"

Temas relacionados

Get-WebHandler

Remove-WebHandler

Set-WebHandler