description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
Microsoft.IIS.PowerShell.Provider.dll-Help.xml |
WebAdministration |
12/27/2016 |
2.0.0 |
Set-WebBinding |
Changes a property of an IIS site binding.
Set-WebBinding [[-Name] <String>] [[-IPAddress] <String>] [[-Port] <UInt32>] [-HostHeader <String>]
-PropertyName <String> -Value <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Set-WebBinding [[-Name] <String>] [-BindingInformation] <String> -PropertyName <String> -Value <String>
[-WhatIf] [-Confirm] [<CommonParameters>]
The Set-WebBinding cmdlet changes a property of an existing Internet Information Services (IIS) site binding.
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.
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
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
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
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
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
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
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.