Set-WebBinding
Changes a property of an IIS site binding.
Syntax
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>]
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 |
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: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostHeader
Specifies the host header of the site binding to change.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IPAddress
Specifies the IP address of the site binding to change.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies the name of the site for which this cmdlet changes the binding property.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Port
Specifies the port of the site binding to change.
Type: | UInt32 |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PropertyName
Specifies the property name of the binding property to change.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Value
Specifies the value of the binding property.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour