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: -

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 Invoke-Expression / iex usage is enough to trigger Defender at this point tbh. 馃
Hi! I was also facing the same problem but I was able to install chocolatey by opening McAfee app and disabling Real Time scanning and Firewall

@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.
Most helpful comment
Hi! I was also facing the same problem but I was able to install chocolatey by opening McAfee app and disabling Real Time scanning and Firewall
