Skip to content

Latest commit

 

History

History
161 lines (123 loc) · 3.3 KB

File metadata and controls

161 lines (123 loc) · 3.3 KB
external help file ms.assetid manager online version schema ms.reviewer ms.author author
Microsoft.IIS.PowerShell.Provider.dll-Help.xml
741FF2B8-A6E2-4A39-8470-2F7CA6CC7808
dansimp
2.0.0
v-anbarr
andreabarr

New-WebBinding

SYNOPSIS

Adds a new binding to an existing Web site.

SYNTAX

New-WebBinding [[-Name] <String>] [-Protocol <String>] [-Port <UInt32>] [-IPAddress <String>]
 [-HostHeader <String>] [-SslFlags <Int32>] [-Force] [<CommonParameters>]

DESCRIPTION

Adds a new binding to an existing Web site.

EXAMPLES

Example 1: Add a new site binding

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

This command creates a binding on the default website.

Example 2: Add a new ssl site binding

IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https"

This command creates an SSL binding on the default website.s

PARAMETERS

-Force

Forces the creation of the binding.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-HostHeader

The host header of the new binding.

Type: String
Parameter Sets: (All)
Aliases: 

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

-IPAddress

The IP address of the new binding.

Type: String
Parameter Sets: (All)
Aliases: 

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

-Name

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

Type: String
Parameter Sets: (All)
Aliases: 

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

-Port

The port used for the binding.

Type: UInt32
Parameter Sets: (All)
Aliases: 

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

-Protocol

The protocol to be used for the Web binding (usually HTTP, HTTPS, or FTP).

Type: String
Parameter Sets: (All)
Aliases: 

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

-SslFlags

Indicates what type of certificate and/or certificate storage the new website supports. Only the following values are valid: 0 (Regular certificate in Windows certificate storage), 1 (SNI certificate), 2 (central certificate store), or 3 (SNI certificate in central certificate store).

Type: Int32
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

RELATED LINKS