Set security protocol.

This commit is contained in:
Jared Goodwin 2020-04-23 10:36:19 -07:00
parent c3ffde811b
commit ea9c008f2e

View File

@ -1,3 +1,4 @@
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 -bor [System.Net.SecurityProtocolType]::Tls13
[System.IO.Directory]::CreateDirectory("$env:AppData\Remotely")
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$env:AppData\Remotely\dotnet-install.ps1"
&"$env:AppData\Remotely\dotnet-install.ps1" -Runtime dotnet