pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
295 stars 92 forks source link

Exceptions #177

Closed pspete closed 5 years ago

pspete commented 5 years ago

Summary

Check for [System.Net.Http.HttpRequestException] only works for PSCore. Invoke-WebRequest in Powershell 5 raises a [Net.WebException]. Invoke-PASRequest updated to handle both PSCore & PowerShell scenarios.