Antivirus Removing Configure-Antivirus.ps1 Provisioner #5964
-
Hi, I'm encountering a new error when trying to build images using this repo where the file "Configure-Antivirus.ps1" is locked and automatically removed by AV which breaks the Packer build because the file doesn't exist after starting execution. I've been using this repository for a long time, and this has not happened before (even as of last week) Here is the output when attempting to get the file contents and my current Windows Defender AV information:
Is there a way to work around this without specially excluding this file/folder from AV? The issue I'm running into is when cloning this repository onto my build agents the file is deleted but I can't elevate permissions from within the build to exclude the file/folder from AV by using Add-MpPreference -ExclusionPath "..." |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @SignalRichard. |
Beta Was this translation helpful? Give feedback.
Hey @SignalRichard.
I have created a new branch for testing, could you check https://github.com/al-cheb/virtual-environments/tree/bypass-defender-scan ?