scan using mrt

@echo off
@echo Start: %date% %time%
echo This is a scan using Malicious Software Removal Tool
echo see %windir%\debug\mrt.log for details of the scan

REM use Start /wait Mrt.exe /Q /F for an extended scan -- this takes quite long on bigger systems
Start /wait Mrt.exe /Q
If errorlevel 0 goto error0
If errorlevel 1 goto error1
If errorlevel 2 goto error2
If errorlevel 3 goto error3
If errorlevel 4 goto error4
If errorlevel 5 goto error5
If errorlevel 6 goto error6
If errorlevel 7 goto error7
If errorlevel 8 goto error8
If errorlevel 9 goto error9
If errorlevel 10 goto error10
If errorlevel 11 goto error11
If errorlevel 12 goto error12
If errorlevel 13 goto error13
Goto end

:error0
echo No infection found
Goto end

:error1
echo OS Environment Error
Goto end

:error2
echo Not running as an Administrator
Goto end

:error3
echo Not a supported OS
Goto end

:error4
echo Error Initializing the scanner. (Download a new copy of the tool)
Goto end

:error5
echo Not used
Goto end

:error6
echo At least one infection detected. No errors.
Goto end

:error7
echo At least one infection was detected, but errors were encountered.
Goto end

:error8
echo At least one infection was detected and removed, but manual steps are required for a complete removal.
Goto end

:error9
echo At least one infection was detected and removed, but manual steps are required for complete removal and errors were encountered.
Goto end

:error10
echo At least one infection was detected and removed, but a restart is required for complete removal
Goto end

:error11
echo At least one infection was detected and removed, but a restart is required for complete removal and errors were encountered
Goto end

:error12
echo At least one infection was detected and removed, but both manual steps and a restart is required for complete removal.
Goto end

:error13
echo At least one infection was detected and removed, but a restart is required. No errors were encountered.
Goto end

:end
@echo End: %date% %time%
exit

Leave a Reply

Your email address will not be published. Required fields are marked *