diff --git a/docset/winserver2012-ps/webadministration/New-WebBinding.md b/docset/winserver2012-ps/webadministration/New-WebBinding.md index 8ca840672e..cae082ba0a 100644 --- a/docset/winserver2012-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2012-ps/webadministration/New-WebBinding.md @@ -32,9 +32,10 @@ This command creates a binding on the default website. ### Example 2: Add a new SSL site binding ```powershell PS C:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +PS C:\> (Get-WebBinding -Name "Default Web Site" -Port 443 -Protocol "https").AddSslCertificate("a909502dd82ae41433e6f83886b00d4277a32a7b", "my") ``` -This command creates an SSL binding on the default website. +This command creates an SSL binding on the default website and adds a certificate with thumbprint `a909502dd82ae41433e6f83886b00d4277a32a7b` from the computer certificate store. ## PARAMETERS diff --git a/docset/winserver2012r2-ps/webadministration/New-WebBinding.md b/docset/winserver2012r2-ps/webadministration/New-WebBinding.md index fc37ccdb5f..ea94d04241 100644 --- a/docset/winserver2012r2-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2012r2-ps/webadministration/New-WebBinding.md @@ -34,9 +34,10 @@ This command creates a binding on the default website. ### Example 2: Add a new SSL site binding ```powershell PS C:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +PS C:\> (Get-WebBinding -Name "Default Web Site" -Port 443 -Protocol "https").AddSslCertificate("a909502dd82ae41433e6f83886b00d4277a32a7b", "my") ``` -This command creates an SSL binding on the default website. +This command creates an SSL binding on the default website and adds a certificate with thumbprint `a909502dd82ae41433e6f83886b00d4277a32a7b` from the computer certificate store. ## PARAMETERS diff --git a/docset/winserver2016-ps/webadministration/New-WebBinding.md b/docset/winserver2016-ps/webadministration/New-WebBinding.md index bb649fec9c..57ef5e7a9c 100644 --- a/docset/winserver2016-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2016-ps/webadministration/New-WebBinding.md @@ -35,9 +35,10 @@ This command creates a binding on the default website. ### Example 2: Add a new SSL site binding ```powershell PS C:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +PS C:\> (Get-WebBinding -Name "Default Web Site" -Port 443 -Protocol "https").AddSslCertificate("a909502dd82ae41433e6f83886b00d4277a32a7b", "my") ``` -This command creates an SSL binding on the default website. +This command creates an SSL binding on the default website and adds a certificate with thumbprint `a909502dd82ae41433e6f83886b00d4277a32a7b` from the computer certificate store. ## PARAMETERS diff --git a/docset/winserver2019-ps/webadministration/New-WebBinding.md b/docset/winserver2019-ps/webadministration/New-WebBinding.md index ef99ccb55a..57801898ac 100644 --- a/docset/winserver2019-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2019-ps/webadministration/New-WebBinding.md @@ -35,9 +35,10 @@ This command creates a binding on the default website. ### Example 2: Add a new SSL site binding ```powershell PS C:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +PS C:\> (Get-WebBinding -Name "Default Web Site" -Port 443 -Protocol "https").AddSslCertificate("a909502dd82ae41433e6f83886b00d4277a32a7b", "my") ``` -This command creates an SSL binding on the default website. +This command creates an SSL binding on the default website and adds a certificate with thumbprint `a909502dd82ae41433e6f83886b00d4277a32a7b` from the computer certificate store. ## PARAMETERS diff --git a/docset/winserver2022-ps/webadministration/New-WebBinding.md b/docset/winserver2022-ps/webadministration/New-WebBinding.md index 95c4a94154..e154b68045 100644 --- a/docset/winserver2022-ps/webadministration/New-WebBinding.md +++ b/docset/winserver2022-ps/webadministration/New-WebBinding.md @@ -35,9 +35,10 @@ This command creates a binding on the default website. ### Example 2: Add a new SSL site binding ```powershell PS C:\> New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 443 -HostHeader "TestSite" -Protocol "https" +PS C:\> (Get-WebBinding -Name "Default Web Site" -Port 443 -Protocol "https").AddSslCertificate("a909502dd82ae41433e6f83886b00d4277a32a7b", "my") ``` -This command creates an SSL binding on the default website. +This command creates an SSL binding on the default website and adds a certificate with thumbprint `a909502dd82ae41433e6f83886b00d4277a32a7b` from the computer certificate store. ## PARAMETERS