New-WebBinding

New-WebBinding

Adds a binding to a website.

Sintaxis

Parameter Set: Default
New-WebBinding [[-Name] <String> ] [-Force] [-HostHeader <String> ] [-IPAddress <String> ] [-Port <UInt32> ] [-Protocol <String> ] [-SslFlags <Int32> ] [ <CommonParameters>]

Descripción detallada

The New-WebBinding cmdlet adds a new binding to an existing website.

Parámetros

-Force

Forces the creation of the binding.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-HostHeader<String>

Specifies the host header of the new binding.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-IPAddress<String>

Specifies the IP address of the new binding.

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 website on which this cmdlet creates the new binding.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Port<UInt32>

Specifies the port for the new binding.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Protocol<String>

Specifies the protocol for the new binding. This protocol is usually HTTP, HTTPS, or FTP.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-SslFlags<Int32>

Indicates what type of certificate and certificate storage the new website supports. Los valores aceptables para este parámetro son los siguientes:

-- 0: Regular certificate in Windows certificate storage.
-- 1: SNI certificate.
-- 2: Central certificate store.
-- 3: SNI certificate in central certificate store.

Alias

ninguno

¿Requerido?

false

¿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-------------- EXAMPLEExample 1: Adding a new Site site Binding binding --------------site binding

This command creates a binding on the default website.

IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite"

Temas relacionados

Get-WebBinding

Remove-WebBinding

Set-WebBinding