-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install Chocolatey due to Windows Defender AMSI (Anti-Malware Scan Interfaces) blocking installation - "This script contains malicious content and has been blocked by your antivirus software" #2132
Comments
You might want to check your AV settings and make sure they allow signed scripts, at least while you run the installation. I'm not familiar enough with McAfee itself to know exactly where that's at, though. |
Okay. I will check the same. The only concern I have is after installing Chocolatey, will it do the same for every software install through its CLI. Also unsure, about being compromising with my System's Security too. So for now, will drop the plan to go ahead with Chocolatey; even though its a great package/concept/thought. Will check and explore WinGet. |
I would love to know what it thinks is malicious? |
Looks like Windows Defender AMSI - https://evotec.xyz/import-module-this-script-contains-malicious-content-and-has-been-blocked-by-your-antivirus-software/ |
It's possible simple |
@TanishqPal Thanks! I was also facing the same issue and now it is working fine! |
@TanishqPal, @navaneethavarier: There is no point using Antivirus then! Though I know this works, it is not what is expected to be solution. Thanks! |
Can you please close this issue ? |
@TanishqPal The issue is not yet resolved, so we should keep it open. |
you have to re launch the shell after disabling real-time scan and firewall for the install to work if you have McAffe |
@Liegia: This isn't a solution! There should be a way like we usually have with other programs. @ferventcoder: How is this an invalid issue (as per the marked label)? |
@nimpossible The issue is invalid as the problem lies with McAfee and not Chocolatey. And with all due respect, if the solution @Liegia posted works, then it is the solution.
What did you have in mind? |
There has been no response to this so I'm going to go ahead and close it. |
THANK YOU |
Run as admin. |
Ty so much guys. I was enable to install chocolatey. I have McAfee and I disable Firewall + Real-Time scan and then I launch PowerShell as admin and it works! Ty ty ty |
The issue is due to downloading the scripts from URL. I would suggest to download the chocolatey installation script from https://chocolatey.org/install.ps1 to a folder and edit the command
|
Thanks a lot, it worked! |
Thanks @rejithnair! This works without tampering with security settings in McAcfee. |
I am using the Licenced version of McAfee AV on my licenced Windows 10 Home Edition. Not sure what is interfering with Chocolatey, but it is not letting me install even being an Administrator.
Please note: I have already followed your documents for setting the ExecutionPolicies and all okay from my end.
Also, attached the error as per the below screengrab: -
The text was updated successfully, but these errors were encountered: