Get-WebBinding
Get-WebBinding
Gets the bindings on an IIS site.
Sintaxis
Parameter Set: Default
Get-WebBinding [[-Name] <String> ] [-HostHeader <String> ] [-IPAddress <String> ] [-Port <String> ] [-Protocol <String> ] [ <CommonParameters>]
Descripción detallada
The Get-WebBinding cmdlet gets information about the bindings configured on an Internet Information Services (IIS) site, such as protocol and port number.
Parámetros
-HostHeader<String>
Specifies the host name for which the binding is configured.
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 for which the binding is configured.
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 site for which this cmdlet returns binding information.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Port<String>
Specifies the port for which the binding is configured.
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 which the binding is configured. The 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 |
<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 1: Get the site bindings of the default website
This command gets the bindings configured on the default website.
IIS:\>Get-WebBinding -Name "Default Web Site"