PowerShell Logo Small

Remove-WebBinding



This is the built-in help made by Microsoft for the command 'Remove-WebBinding', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes a binding from an IIS Web site.

SYNTAX


Remove-WebBinding [-HostHeader <String>] [-IPAddress <String>] [-Name <String>] [-Port <String>] [-Protocol <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-WebBinding [-Name <String>] [-Protocol <String>] -BindingInformation <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-WebBinding [-Name <String>] [-Protocol <String>] -InputObject <PSObject> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Removes a binding from an IIS Web site.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=287883

REMARKS

<

Examples


-------------- EXAMPLE 1: Adding and removing a site binding --------------

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



The example demonstrates how to create a new binding, and then remove that binding after waiting 5 seconds. Piping is used to remove the site binding returned by
theGet-WebBindingcmdlet.