7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

proxy環境下で、Powershellからwgetする

Posted at

powershell version5では以下で動作します。
version4では動かないので注意。

Proxy認証情報を作成

PS C:\> $secPasswd=ConvertTo-SecureString "<ProxyPassword>" -AsPlainText -Force
PS C:\> $myCreds=New-Object System.Management.Automation.PSCredential -ArgumentList "<ProxyUserName>",$secPasswd

wgetする

wgetInvoke-WebRequest のエイリアスです。

PS C:\> wget -Uri https://qiita.com -Proxy <プロキシサーバー> -proxyCredential $myCreds

プロキシサーバーは、url:ポート の形式。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?