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

Remove-WebBinding

Windows Server 2012 R2 and Windows 8.1

Remove-WebBinding

Removes a binding from an IIS website.

Syntax

Parameter Set: InputBindingProperties
Remove-WebBinding [-HostHeader <String> ] [-IPAddress <String> ] [-Name <String> ] [-Port <String> ] [-Protocol <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

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

Parameter Set: InputObject
Remove-WebBinding -InputObject <PSObject> [-Name <String> ] [-Protocol <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-WebBinding cmdlet removes a binding from an Internet Information Services (IIS) website.

Parameters

-BindingInformation<String>

Specifies a BindingInformation object.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-HostHeader<String>

Specifies the host header of the site binding that this cmdlet removes.


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 from which this cmdlet removes the binding. You can use globbing (*) to specify all IP addresses.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<PSObject>

Specifies an input object that contains site binding information.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the site from which this cmdlet removes the binding.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Port<String>

Specifies the port used by the binding that this cmdlet removes.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Protocol<String>

Specifies the protocol of the binding that this cmdlet removes.


Aliases

none

Required?

false

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: Adding and removeing a site binding --------------e

This example creates a binding, and then removes that binding after waiting 5 seconds. The second command uses the Get-WebBinding cmdlet to get the new binding, and then passes it to the current cmdlet by using the pipeline operator.


IIS:\>New-WebBinding -Name "Default Web Site" -Port 1234 -IPAddress "*" -HostHeader "testsite" "Sleep 5 seconds before removing the binding"; Sleep 5 
IIS:\> Get-WebBinding -Port 1234 -Name "Default Web Site" | Remove-WebBinding

Related topics

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

Community Additions

ADD
Show:
© 2015 Microsoft