Get-WebBinding

Gets the bindings on the specified IIS site.

Syntax

Get-WebBinding
   [[-Name] <String>]
   [-Protocol <String>]
   [-Port <String>]
   [-IPAddress <String>]
   [-HostHeader <String>]
   [<CommonParameters>]

Description

Gets information about the bindings configured on the site specified, such as protocol and port number.

Examples

-------------- EXAMPLE 1: Get the site bindings of the Default Web Site --------------

IIS:\>Get-WebBinding -Name "Default Web Site"

Gets the bindings configured on the Default Web Site.

Optional Parameters

-HostHeader

The host name for which the binding is configured.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-IPAddress

The IP address for which the binding is configured.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

The name of the site for which binding information is returned.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Port

The port for which the binding is configured.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Protocol

The protocol for which the binding is configured, usually http, https or ftp.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False