0
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?

「コンピューターに害を及ぼす可能性があります」 警告が表示されないようにする Windows11 WSL2

0
Last updated at Posted at 2026-02-02

image.png

概要

WSL2環境からWindowsローカル環境にファイルコピーする際などに表示されるセキュリティ警告 「コンピューターに害を及ぼす可能性があります」
ってやつを消したい

方法

WSL2のパスを調べて、若干訂正してローカルイントラネットの対象に追加する

WSL2のパスは普通にインストールした場合はたぶん以下の2通り?
\\wsl
\\wsl.localhost

※FileExplorerに上記パスを打ってみて、表示されるか確認する


Ctrl + r でファイル名を指定して実行を開く
control を入力してEnter
インターネットオプション > セキュリティ > ローカルイントラネット > サイト > 詳細設定
このWebサイトをゾーンに追加する
に以下を記載して[追加] > [閉じる] > [OK] > [OK]

file://*.wsl
file://*.wsl.localhost

※ パスが上記と異なる場合はそれを記載する

image.png


確認

WSL2環境からWindowsローカル環境へのファイルコピーを試してみて、警告ダイアログが表示されなくなっていたら成功。

参考

0
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
0
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?