mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 11:15:46 +00:00
Connect: Add System.Web to Type (Assembly) for PS 5.0
This commit is contained in:
parent
2b7c1b4be3
commit
e17408413c
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue