4
1

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 3 years have passed since last update.

Windows Server 2019 でプロキシ設定をして Windows Update を実行する

Posted at

概要

Windows Server 2019 で外部への通信をFWで遮断しつつ Windows Update だけ
プロキシサーバを使って実行したい時に少し迷ったのでメモ

設定

[1] IEでプロキシ設定
ツール → インターネットオプション → 接続 → LANの設定
・「LANにプロキシサーバーを使用する」にチェックつける
・アドレス:プロキシサーバのホスト名orIPアドレス
・ポート:プロキシサーバを使うためのポート番号を指定

[2] PowerShellで WinHTTP プロキシを設定
[1]だけ実施してもうまくいかない場合、[2]も実施する必要がある。
システムが自動実行する Windows Update はWinHTTPプロキシの設定を使うらしい?

PowerShell を起動して以下を実施

netsh winhttp show proxy
netsh winhttp import proxy source=ie

現在の WinHTTP プロキシ設定:

    プロキシ サーバー:  プロキシサーバ名:ポート番号
    バイパス一覧     : (なし)

Windows Update が終わったらWinHTTPプロキシ設定を消す。

netsh winhttp reset proxy

現在の WinHTTP プロキシ設定:

    直接アクセス (プロキシ サーバーなし)。

参考

IEのプロキシとWinHTTP Proxy

4
1
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
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?