Connect: Add System.Web to Type (Assembly) for PS 5.0

This commit is contained in:
Alexis La Goutte 2021-07-26 16:54:05 +02:00
parent 2b7c1b4be3
commit e17408413c

View file

@ -85,6 +85,8 @@
#for PowerShell (<=) 5 (Desktop), Enable TLS 1.1, 1.2 and Disable SSL chain trust #for PowerShell (<=) 5 (Desktop), Enable TLS 1.1, 1.2 and Disable SSL chain trust
if ("Desktop" -eq $PSVersionTable.PsEdition) { if ("Desktop" -eq $PSVersionTable.PsEdition) {
#Add System.web (Need for ParseQueryString)
Add-Type -AssemblyName System.Web
#Enable TLS 1.1 and 1.2 #Enable TLS 1.1 and 1.2
Set-NetboxCipherSSL Set-NetboxCipherSSL
if ($SkipCertificateCheck) { if ($SkipCertificateCheck) {