Add tls1.2 compatibility
This commit is contained in:
1 parent
7b6535a1bb
commit
44c225a23c
1 file changed
+3
@@ -37,6 +37,9 @@ param(
|
|||||||
[switch]$Reboot
|
[switch]$Reboot
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Enable TLS 1.2 needed for older windows server version
|
||||||
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
|
||||||
|
|
||||||
# Ensure NuGet provider is available (with -Force to avoid prompts)
|
# Ensure NuGet provider is available (with -Force to avoid prompts)
|
||||||
$nugetProvider = Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction SilentlyContinue
|
$nugetProvider = Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user