I am currently in Powershell V5.1 and would like to bypass Internet Explorer proxy on a Invoke-RestMethod command.
In Powershell V6, there is the -NoProxy option that indicates that the cmdlet will not use a proxy to reach the destination. This is to bypass the proxy configured in Internet Explorer and this is exactly what I want to do.
In Powershell V6, the code would be something like:
$Result = Invoke-RestMethod -Uri $url -NoProxy
Any workaround in V5.1 ?
Thanks, Philippe
Invoke-WebRequest
to an internal server that was being blocked by the proxy, but made no effect onInvoke-RestMethod
at all... – Demy