2016-04-12 5 views

答えて

1

私はそれが、設定されたプロキシという名前のコマンドがありhttps://superuser.com/questions/419696/in-windows-7-how-to-change-proxy-settings-from-command-line

の可能複製であると信じています。

set HTTP_PROXY=http://user:[email protected]:port 

また、以下を参照してくださいnetshを

netsh winhttp set proxy [proxy server address:port number] [bypass list] 

を使用した:私にとって

http://www.ehow.com/how_6887864_do-proxy-settings-command-prompt_.html

https://superuser.com/questions/337685/how-do-i-change-the-windows7-lan-proxy-config-from-the-command-line

1

前の回答では上記のいずれでもないものを、次を参照してください。提案here(それは全く同じですが、ちょっとだけ説明しました)。

何の代わりに、これまで働いていた、とだけセッションのために、このコマンドでいる

:その後、私は例えばなどのWebコンテンツを取得することができました、本当になどから

(New-Object System.Net.WebClient).Proxy.Credentials = 
[System.Net.CredentialCache]::DefaultNetworkCredentials 

here

を説明しました:

Invoke-WebRequest http://example.org 
関連する問題