Closed marcelvos1 closed 2 years ago
Hi,
There are several posts that handle these issues with PowerShell scripts in combination with Windows Defender or any Anti Virus software. By the way, these are quite common, unfortunately (here's an example of another case: https://evotec.xyz/import-module-this-script-contains-malicious-content-and-has-been-blocked-by-your-antivirus-software/)
First of all: it's not recommended to enable Anti-Virus on a Server for a build-agent. But, to not make your build-server a security hazard, it's a good practice to NOT put a it into your domain. We have it completely isolated.
A few pointers what you can do:
"alops_disable_amsi" = true
in your yaml (more info on globals: https://github.com/HodorNV/ALOps/blob/master/Documentation/Globals.md).Hope that helps!
Hi @waldo1001 ,
Thanks. Folow steps below and it's working now.
Go to Start > Settings > Update & Security > Windows Security > Virus & threat protection. Under Virus & threat protection settings, select Manage settings, and then under Exclusions, select Add or remove exclusions. Select Add an exclusion, and then select from files, folders, file types, or process.
Marcel
Describe the bug From this morning we gat an error in the build pipelines: Operation did not complete successfully because the file contains a virus or potentially unwanted software. Yesterday all pipelines are running fine.
Thanks for help. Marcel
the output Also the complete output is necessary for us to see what is going on. Also use backtics:
Screenshots