Added TLS security protocol for Powershell downloads (#73226)
##### SUMMARY Added `[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12` to the Powershell scripts that use a file download. If not specified the script won't be allowed to download data from the mentioned URL's. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
This commit is contained in:
parent
1202dd000f
commit
aa21804165
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,7 @@ This is an example of how to run this script from PowerShell:
|
|||
|
||||
.. code-block:: powershell
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Upgrade-PowerShell.ps1"
|
||||
$file = "$env:temp\Upgrade-PowerShell.ps1"
|
||||
$username = "Administrator"
|
||||
|
@ -95,6 +96,7 @@ The following PowerShell command will install the hotfix:
|
|||
|
||||
.. code-block:: powershell
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$url = "https://raw.githubusercontent.com/jborean93/ansible-windows/master/scripts/Install-WMF3Hotfix.ps1"
|
||||
$file = "$env:temp\Install-WMF3Hotfix.ps1"
|
||||
|
||||
|
@ -120,6 +122,7 @@ To use this script, run the following in PowerShell:
|
|||
|
||||
.. code-block:: powershell
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
|
||||
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"
|
||||
|
||||
|
|
Loading…
Reference in a new issue