goozgk

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

c:\Program Files\Windows Defender>MpCmdRun.exe -scan -scantype 3 -file "D:\手动更新病毒库" -DisableRemediation
Scan starting...
Scan finished.
Scanning D:\
<===========================LIST OF DETECTED THREATS==========================>
----------------------------- Threat information ------------------------------
Threat : Virus:DOS/EICAR_Test_File
Resources : 1 total
file : D:\\eicar.txt
-------------------------------------------------------------------------------

c:\Program Files\Windows Defender>echo %errorlevel%
2


c:\Program Files\Windows Defender>
c:\Program Files\Windows Defender>
c:\Program Files\Windows Defender>MpCmdRun.exe -scan -scantype 3 -file "C:\Users\Administrator\Desktop\my.ini" -DisableRemediation
Scan starting...
Scan finished.
Scanning C:\Users\Administrator\Desktop\my.ini found no threats.

c:\Program Files\Windows Defender>echo %errorlevel%
0


Return code is
0 if no malware is found or malware is successfully remediated and no additional user action is required
2 if malware is found and not remediated or additional user action is required to complete remediation or there is error in scanning. Please check History for more information.

posted on 2018-11-22 17:00  goozgk  阅读(197)  评论(0编辑  收藏  举报