New-WebBinding

Adds a new binding to an existing Web site.

Syntax

New-WebBinding
   [[-Name] <String>]
   [-Protocol <String>]
   [-Port <UInt32>]
   [-IPAddress <String>]
   [-HostHeader <String>]
   [-SslFlags <Int32>]
   [-Force]
   [<CommonParameters>]

Description

Adds a new binding to an existing Web site.

Examples

-------------- EXAMPLE 1: Adding a new Site Binding --------------

IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite

Creates a new binding on the Default Web Site.

Optional Parameters

-Force

Forces the creation of the binding.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HostHeader

The host header of the new binding.

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

The IP address of the new binding.

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

The name of the Web site on which the new binding is created.

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

The port used for the binding.

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

The protocol to be used for the Web binding (usually HTTP, HTTPS, or FTP).

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

Indicates what type of certificate and/or certificate storage the new website supports. Only the following values are valid: 0 (Regular certificate in Windows certificate storage), 1 (SNI certificate), 2 (central certificate store), or 3 (SNI certificate in central certificate store).

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