Edit

Share via


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

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Name

Specifies the name of the IIS website.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Protocol

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Object