I need to set a proxy using command line in windows .
Have you any idea about the commands to execute ?
Thank you in advance .
For me neither the above in the previous answer neither what suggested here(that is quite the same, only explained a bit better).
What instead has worked so far, and only for the session, is this command:
(New-Object System.Net.WebClient).Proxy.Credentials =
[System.Net.CredentialCache]::DefaultNetworkCredentials
as from really well explained here
Then I was able to retrieve web content as for example:
Invoke-WebRequest http://example.org
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With