Windows 10 Windows Defender Command line tool (MpCmdRun.exe) occasionally gives the exit code = 2 when it is run under System account.

  • Thread starter Thread starter Volodymyr_11111
  • Start date Start date
V

Volodymyr_11111

Hi,I have a windows service that operates under System account. The service uses MpCmdRun.exe to scan files.When I scan multiple files simultaneously (multiple threads), 70% of the attempts fail with exit code 2.Here is the command which I use:C:\Program Files\Windows Defender\MpCmdRun.exe -Scan -ScanType 3 -File "C:\Temp\GitExtensions.msi" -DisableRemediation And WindowsDefender logs -------------------------------------------------------------------------------------MpCmdRun: Command Line: "C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "C:\Temp\GitExtensions.msi" -D

Continue reading...
 
Back
Top