Invoke-WebRequest should support -NoProxy parameter
Invoke-WebRequest picks up the system proxy defined in Internet Options by default. It also includes parameters -Proxy, -ProxyCredentials and -ProxyUseDefaultCredentials for changing and managing the proxy that it uses.
It would be very useful to have a -NoProxy parameter that forced a direct web connection. Currently, when this is required, the system proxy has to be disabled.
This got implemented as part of PowerShell 6 and will part of our next alpha release (6.0.0-alpha.18, likely out in the next day or two): https://github.com/PowerShell/PowerShell/pull/3447
Thanks to @TheFlyingCorpse for the implementation!
Andy McKnight commented