Get-IISSite Binding

Gets the bindings on the specified IIS site.

Syntax

Get-IISSiteBinding
   [-Name] <String>
   [[-BindingInformation] <String>]
   [[-Protocol] <String>]

Description

The Get-IISSiteBinding cmdlet gets information about website bindings and their current status and other key information.

Examples

Example 1: Get Information about an IIS website binding

PS C:\> Get-IISSiteBinding "Default Web Site" "*:80:"

This command gets the binding information for the "*:80:" binding of the Default Web Site.

Example 2: Get information about all bindings of an IIS website

PS C:\> Get-IISSiteBinding "Default Web Site"

protocol bindingInformation sslFlags
-------- ------------------ --------
http     *:80:                  None
http     *:1234:                None

This command gets all configuration information about all bindings of the Default Web Site

Required Parameters

-Name

Specifies the name of the IIS website.

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

Optional Parameters

-BindingInformation

Specifies the binding information string to use for the new site. The binding information of the form IP:Port:hostname such as 192.168.0.1:80:www.contoso.com and one or more of the fields can be left blank, which is equivalent to using a wildcard character such as *:443:. In this representation * indicates all IP addresses and all hostnames are indicated by leaving the corresponding field blank.

Type: String
Position: 1
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: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Inputs

System.String

Outputs

Microsoft.Web.Administration.BindingCollection