How to query the Internet behind a NTLM Proxy on a corporate network
Sometimes at client sites, we need to use PowerShell scripts to invoke REST APIs through a Proxy. If the Proxy required NTLM authentication it can be an utter pain to get this to work correctly.
Invoke-RestMethod
has the -Proxy
and ProxyCredentials
parameters, but you should use this instead:
This should give you the results you need!
PreviousHow to use a Select-Object to create your custom object array for youNextCheck .NET Framework versions installed
Last updated