powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-WebBinding



NAME
New-WebBinding

SYNOPSIS
Adds a new Web site binding to an existing Web site.

SYNTAX
New-WebBinding [[-Name] ] [-Protocol ] [-Port ] [-IPAddress ] [-HostHeader
] [-Force] [-WarningAction ] [-WarningVariable ] []


DESCRIPTION
Adds a new Web site binding to an existing Web site.


PARAMETERS
-Name
The name of the Web site on which the new binding is created.

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

-Protocol
The protocol to be used for the Web binding (usually http, https or ftp).

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

-Port
The port to be used for the binding.

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

-IPAddress
The IP address of the new web binding.

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

-HostHeader
The host header of the new Web binding.

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

-Force
Forces the creation of the binding.

Required? false
Position? named
Default value
Accept pipeline input? false
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


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: Adding a new Site Binding --------------

C:\PS>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite


Creates a new binding on the Default Web Site.






RELATED LINKS