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

Set-WebBinding

Windows Server 2012 R2 and Windows 8.1

Set-WebBinding

Changes a property of an IIS site binding.

Syntax

Parameter Set: InputBindingProperties
Set-WebBinding [[-Name] <String> ] [[-IPAddress] <String> ] [[-Port] <UInt32> ] -PropertyName <String> -Value <String> [-HostHeader <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: InputBindingInformation
Set-WebBinding [[-Name] <String> ] [-BindingInformation] <String> -PropertyName <String> -Value <String> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Set-WebBinding cmdlet changes a property of an existing Internet Information Services (IIS) site binding.

Parameters

-BindingInformation<String>

Specifies a BindingInformation object.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-HostHeader<String>

Specifies the host header of the site binding to change.


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 site binding to change.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the site for which this cmdlet changes the binding property.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Port<UInt32>

Specifies the port of the site binding to change.


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-PropertyName<String>

Specifies the property name of the binding property to change.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Value<String>

Specifies the value of the binding property.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Changing Change a Wweb site binding property --------------Change w

This command changes the setting for the Port property for the default website from 80 to 1234.


IIS:\>Set-WebBinding -Name 'Default Web Site' -BindingInformation "*:80:" -PropertyName "Port" -Value "1234"

Related topics

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

Community Additions

ADD
Show:
© 2015 Microsoft