

When inside the docker container (docker exec -it test powershell). #Tried running these, as well as Update-MpSignature in powershell, to no success. RUN reg add "HKLM\SYSTEM\CurrentControlSet\services\WinDefend" /v Start /t REG_DWORD /d 2 /f

#Without this Windows defender is disabled RUN powershell Set-Service wuauserv -StartupType "Automatic" RUN icacls c:\inetpub\wwwroot\temp_files /grant IIS_IUSRS:F RUN powershell New-Item c:\inetpub\wwwroot\temp_files -type directory #So I can write sent file to disk in container bin/Release/PublishOutput/ /inetpub/wwwroot ThirdPartyNotices.txt, DisableRemediation = 0, BootSectorScan Start: MpScan(MP_FEATURE_SUPPORTED, dwOptions=16385, path Scanning path as file: ThirdPartyNotices.txt. MpCmdRun: Command Line: MpCmdRun.exe -Scan -ScanType 3 -File The log file doesn't give much more information. Check C:\Users\ContainerAdministrator\AppData\Local\Temp\MpCmdRun.log for more information Running: C:\Program Files\Windows Defender>MpCmdRun.exe -Scan -ScanType 3 -File ThirdPartyNotices.txtĬmdTool: Failed with hr = 0x8050800C. However, when running Windows Defender inside the Docker Container, I get the following error: I decided to put this Web API inside a docker container, and then publish it to Azure. However, I want to host this API in the cloud (Azure), as the rest of my applications are there. When running the API locally on my computer, everything is fine. I've created a ASP.NET Web API that retrieves a file as a stream content, saves to disk and scans the file using Windows defender (MpCmdRun.exe).
