Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Set-WebBinding

Last Updated: 4/3/2017

SYNOPSIS

Changes a property of an IIS site binding.

SYNTAX

InputBindingProperties (Default)

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

InputBindingInformation

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

DESCRIPTION

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

EXAMPLES

Example 1: Change a web site binding property

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

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

PARAMETERS

-BindingInformation

Specifies a BindingInformation object.

Type: String
Parameter Sets: InputBindingInformation
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-HostHeader

Specifies the host header of the site binding to change.

Type: String
Parameter Sets: InputBindingProperties
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-IPAddress

Specifies the IP address of the site binding to change.

Type: String
Parameter Sets: InputBindingProperties
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Name

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

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Port

Specifies the port of the site binding to change.

Type: UInt32
Parameter Sets: InputBindingProperties
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PropertyName

Specifies the property name of the binding property to change.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Value

Specifies the value of the binding property.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Get-WebBinding

New-WebBinding

Remove-WebBinding

© 2017 Microsoft