From e17408413c950d6915df820c336d1977edeec0bb Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 26 Jul 2021 16:54:05 +0200 Subject: [PATCH] Connect: Add System.Web to Type (Assembly) for PS 5.0 --- Functions/Setup/Connect-NetboxAPI.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Functions/Setup/Connect-NetboxAPI.ps1 b/Functions/Setup/Connect-NetboxAPI.ps1 index b012a0f..5626dfb 100644 --- a/Functions/Setup/Connect-NetboxAPI.ps1 +++ b/Functions/Setup/Connect-NetboxAPI.ps1 @@ -85,6 +85,8 @@ #for PowerShell (<=) 5 (Desktop), Enable TLS 1.1, 1.2 and Disable SSL chain trust if ("Desktop" -eq $PSVersionTable.PsEdition) { + #Add System.web (Need for ParseQueryString) + Add-Type -AssemblyName System.Web #Enable TLS 1.1 and 1.2 Set-NetboxCipherSSL if ($SkipCertificateCheck) {