Remove-IISSiteBinding

Removes a binding from an IIS website. This cmdlet has been introduced in version 1.1.0.0 of IISAdministration module.

Syntax

Remove-IISSiteBinding
      [-Name] <String>
      [-BindingInformation] <String>
      [[-Protocol] <String>]
      [-RemoveConfigOnly]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes a binding from an IIS website.

Examples

Example 1

PS C:\> Remove-IISSiteBinding -Name "TestSite" -BindingInformation "*:8080:"

This command removes a binding of "*:8080:" from a website named TestSite.

Parameters

-BindingInformation

Specifies the binding information string to use for the new site. The binding information of the form IP:Port:hostname such as 192.168.0.1:80:www.contoso.com and one or more of the fields can be left blank, which is equivalent to using a wildcard character such as *:443:. In this representation * indicates all IP addresses and all hostnames are indicated by leaving the corresponding field blank.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of the IIS website.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Protocol

The protocol for which the binding is configured, usually http, https or ftp.

Type:String
Position:2
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-RemoveConfigOnly

Indicates that this operation does not remove the SSL certificate information and only removes the IIS binding configuration information in the applicationhost.config.

If you want to delete a HTTPS binding configuration that shares a SSL certificate with other existing bindings, only the IIS binding configuration should be removed so that the SSL certificate information remains. This is to ensure that the other existing bindings will still have access to the certificate.

This parameter is ignored if you are removing a binding which does not have a certificate.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Object