powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-WebBinding



NAME
Set-WebBinding

SYNOPSIS
Changes a property of an IIS site binding.

SYNTAX
Set-WebBinding [[-Name] ] [[-IPAddress] ] [[-Port] ] [-HostHeader ] -PropertyName <
String> -Value [-WarningAction ] [-WarningVariable ] [-WhatIf] [-Confirm] [ onParameters>]

Set-WebBinding [[-Name] ] [-BindingInformation] -PropertyName -Value [-WarningAc
tion ] [-WarningVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Changes a property of an IIS site binding.


PARAMETERS
-Name
The name of the site for which the binding property is changed.

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

-IPAddress
The IP address of the new binding.

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

-Port
The port of the new binding.

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

-HostHeader
The Host header of the binding.

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

-PropertyName
The property name of the binding.

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

-Value
The value of the new binding.

Required? true
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

-BindingInformation
A Binding Information object.

Required? true
Position? 2
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: Changing a Web site binding property --------------

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


Changes the setting for the Port property for the Default Web Site from 80 to 1234.






RELATED LINKS