Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

New-WebBinding

Windows Server 2012 R2 and Windows 8.1

New-WebBinding

Adds a binding to a website.

Syntax

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




Detailed Description

The New-WebBinding cmdlet adds a new binding to an existing website.

Parameters

-Force

Forces the creation of the binding.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HostHeader<String>

Specifies the host header of the new binding.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-IPAddress<String>

Specifies the IP address of the new binding.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the website on which this cmdlet creates the new binding.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Port<UInt32>

Specifies the port for the new binding.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Protocol<String>

Specifies the protocol for the new binding. This protocol is usually HTTP, HTTPS, or FTP.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-SslFlags<Int32>

Indicates what type of certificate and certificate storage the new website supports. The acceptable values for this parameter are:

-- 0: Regular certificate in Windows certificate storage.
-- 1: SNI certificate.
-- 2: Central certificate store.
-- 3: SNI certificate in central certificate store.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example-------------- EXAMPLEExample 1: Adding a new Site site Binding binding --------------site binding

This command creates a binding on the default website.


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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft