diff --git a/docset/windows/webadministration/New-WebBinding.md b/docset/windows/webadministration/New-WebBinding.md index 79e7a893fe..4f266aeeb9 100644 --- a/docset/windows/webadministration/New-WebBinding.md +++ b/docset/windows/webadministration/New-WebBinding.md @@ -36,12 +36,19 @@ The **New-WebBinding** cmdlet adds a new binding to an existing website. ## EXAMPLES ### Example 1: Add a new site binding -``` +```powershell 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 +```powershell +IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +``` + +This command creates an SSL binding on the default website. + ## PARAMETERS ### -Force diff --git a/docset/winserver2012-ps/webadminstration/New-WebBinding.md b/docset/winserver2012-ps/webadminstration/New-WebBinding.md index 49cc0b310a..bfe599b357 100644 --- a/docset/winserver2012-ps/webadminstration/New-WebBinding.md +++ b/docset/winserver2012-ps/webadminstration/New-WebBinding.md @@ -26,12 +26,19 @@ Adds a new binding to an existing Web site. ## EXAMPLES -### -------------- EXAMPLE 1: Adding a new Site Binding -------------- +### Example 1: Add a new site binding +```powershell +IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite" ``` -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 +```powershell +IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" ``` -Creates a new binding on the Default Web Site. +This command creates an SSL binding on the default website.s ## PARAMETERS diff --git a/docset/winserver2012r2-ps/webadministration/New-WebBinding.md b/docset/winserver2012r2-ps/webadministration/New-WebBinding.md index 409df285d6..0f8fb0e668 100644 --- a/docset/winserver2012r2-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2012r2-ps/webadministration/New-WebBinding.md @@ -34,13 +34,20 @@ The **New-WebBinding** cmdlet adds a new binding to an existing website. ## EXAMPLES -### Example 1: Adding a new site binding -``` -IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "TestSite" +### Example 1: Add a new site binding +```powershell +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 +```powershell +IIS:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +``` + +This command creates an SSL binding on the default website. + ## PARAMETERS ### -Force