Here’s a small script I just wrote to perform an antivirus scan against a specified file. @Echo off FOR /F "Tokens=4" %%a IN (‘"C:\Program Files\Microsoft Security Client\AntiMalWare\mpcmdrun.exe" -Scan -ScanType 3 -File C:\TEMP\test1.wim -DisableRemediation’) DO SET THREAT=%%a Echo. if "%THREAT%"=="no" ( color 2F Echo No Threats Found – All clean ) ELSE ( [...]
Archive of posts tagged MpCmdRun
Managing Microsoft Security Essentials from the Command Line
Microsoft Security Essentials (MSE) is Microsoft’s free Antivirus Software which helps protecting clients against viruses and spyware. For years I had used other free Antivirus programs on my home based clients, but have switched them all to MSE since it’s release in September 2009. The MSE binaries are located in the following folder: C:\Program Files\Microsoft [...]

