Enable TLS 1.2 for PowerShell scripts

This commit is contained in:
2Shirt 2018-03-08 17:33:48 -07:00
parent 2899e34f5e
commit 6d503fb6c7
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,8 @@ $System32 = "{0}\System32" -f $Env:SystemRoot
Push-Location "$WD"
$Host.UI.RawUI.BackgroundColor = "black"
$Host.UI.RawUI.ForegroundColor = "white"
#Enable TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
## Functions ##

View file

@ -18,6 +18,8 @@ $Host.UI.RawUI.BackgroundColor = "Black"
$Host.UI.RawUI.ForegroundColor = "White"
$HostSystem32 = "{0}\System32" -f $Env:SystemRoot
$DISM = "{0}\DISM.exe" -f $Env:DISMRoot
#Enable TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
## Functions ##
function Ask-User ($text = "Kotaero") {