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

PowerShellでChocolatyをインストールしようとしたらセキュリティソフトにブロックされた

5
Last updated at Posted at 2020-10-21

状況

PowerShellを右クリック&管理者権限で起動して、公式サイト(https://chocolatey.org/install) に記載のコマンドを入力し、パッケージマネージャーChocolateyをインストールしようとしたら、セキュリティソフトにブロックされました。ネットで調べたら、McAfeeを使っている人はブロックされてしまうらしいです。手持ちの別のセキュリティソフトの入ったPCではブロックされませんでした。

PowerShell(管理者権限)
> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
発生場所 行:1 文字:1
+ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.Service ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
このスクリプトには、悪質なコンテンツが含まれているため、ウイルス対策ソフトウェアによりブロックされています。
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ScriptContainedMaliciousContent

対処法

セキュリティソフト(McAfee)を起動し、リアルタイムスキャンを一時的に無効にします。その後、もう一度PowerShellを起動してからコマンドを入力しインストールすればできるはずです。

補足

私は、PowerShellの再起動をせずにコマンドを入力してはブロックされてを繰り返しました…。リアルタイムスキャンを無効にしてもそれまで起動していたソフトはスキャンされるようです。
ちなみにMcAfeeなら、設定→セキュリティ履歴でログを確認できるので、McAfeeにブロックされたのか否かすぐに確認できます。

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