powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-WebBinding



NAME
Remove-WebBinding

SYNOPSIS
Removes a binding from an IIS Web site.

SYNTAX
Remove-WebBinding [-Protocol ] [-Name ] [-IPAddress ] [-Port ] [-HostHeader >] [-WarningAction ] [-WarningVariable ] [-WhatIf] [-Confirm] []

Remove-WebBinding -InputObject [-Protocol ] [-Name ] [-WarningAction ]
[-WarningVariable ] [-WhatIf] [-Confirm] []

Remove-WebBinding [-Protocol ] [-Name ] -BindingInformation [-WarningAction nce>] [-WarningVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Removes a binding from an IIS Web site.


PARAMETERS
-Protocol
The protocol of the binding to remove.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Name
The name of the site from which the binding is removed.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-IPAddress
The IP address of the site from which the binding is removed. "*" can be used to specify all IP addresses.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Port
The port of the binding to remove.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-HostHeader
The host header of the site binding to remove.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-InputObject


Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-BindingInformation
A BindingInformation object.

Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>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


Piping is used to remove the site binding created.






RELATED LINKS