2
0

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.

ダウンロード zip 中の exe や dll が実行できない原因と最も手軽な対処方法

Last updated at Posted at 2021-01-23

要約

  • ダウンロードした zip ファイルのプロパティで「セキュリティ: 許可する」をチェックしてから展開する。

詳細

Windows のセキュリティ機能により、外部ネットワークからダウンロードしたファイルには代替データストリーム情報(ZoneId)が付加される。(ただし、ダウンロードファイルの格納先ファイルシステムが NTFS の場合に限る。)
そして、この ZoneId が付加されている exe, dll ファイルは実行されないように Windows の OS 機能によってガードされている。

zip ファイルの場合、圧縮されているファイル自身に ZoneId は付加されていない。しかし、Windows 標準機能で展開・解凍すると、zip ファイルに付加されている ZoneId が解凍したファイルにも自動的に付加され、セキュリティが確保されている。

なお、Windows 標準ではない解凍ツールを使用して zip ファイルを解凍した場合、ZoneId が自動付加されないため、exe, dll がガードされることはない。

参考情報

最も手軽な対処方法

7-Zip などの解凍ツールを使わず、Windows 標準で対処する場合

  • zip ファイルを解凍する前に、zip ファイルのプロパティで 「セキュリティ: 許可する」をチェックしてから展開。

image.png

理由と対処方法を知っていれば、とても簡単。

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?