Enable TLS 1.2 for PowerShell scripts
This commit is contained in:
parent
2899e34f5e
commit
6d503fb6c7
2 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ $System32 = "{0}\System32" -f $Env:SystemRoot
|
||||||
Push-Location "$WD"
|
Push-Location "$WD"
|
||||||
$Host.UI.RawUI.BackgroundColor = "black"
|
$Host.UI.RawUI.BackgroundColor = "black"
|
||||||
$Host.UI.RawUI.ForegroundColor = "white"
|
$Host.UI.RawUI.ForegroundColor = "white"
|
||||||
|
#Enable TLS 1.2
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
|
|
||||||
## Functions ##
|
## Functions ##
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ $Host.UI.RawUI.BackgroundColor = "Black"
|
||||||
$Host.UI.RawUI.ForegroundColor = "White"
|
$Host.UI.RawUI.ForegroundColor = "White"
|
||||||
$HostSystem32 = "{0}\System32" -f $Env:SystemRoot
|
$HostSystem32 = "{0}\System32" -f $Env:SystemRoot
|
||||||
$DISM = "{0}\DISM.exe" -f $Env:DISMRoot
|
$DISM = "{0}\DISM.exe" -f $Env:DISMRoot
|
||||||
|
#Enable TLS 1.2
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
## Functions ##
|
## Functions ##
|
||||||
function Ask-User ($text = "Kotaero") {
|
function Ask-User ($text = "Kotaero") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue