Get-IISSiteBinding

Gets the bindings on the specified IIS site. This cmdlet has been introduced in version 1.1.0.0 of IISAdministration module.

Syntax

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

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

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
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of the IIS website.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
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
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

Object