How to Schedule a Scan in Microsoft Defender Antivirus in Windows 10  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 15
    Win 10
       #10

    Brink said:
    It would be nice to have an option in Windows Security to schedule a scan.

    Please send feedback to Microsoft requesting this feature in the Feedback Hub app. If enough people requests or upvote feedback for it, Microsoft may add it.
    My dear Brink,

    The point is that Windows Defender (in its various iterations: WinDef, OneCare [!], MSE) did indeed have that feature.

    So, it's not really a feature that someone at Microsoft needs to figure out how to do and, then, add.
      My Computer


  2. Posts : 68,953
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #11

    Agreed. It just needs to be added back via Windows Security now.

    Having enough people request it via the Feedback Hub can help make this happen.
      My Computers


  3. Posts : 116
    Windows 10 Pro
       #12

    Brink said:
    It would be nice to have an option in Windows Security to schedule a scan.

    Please send feedback to Microsoft requesting this feature in the Feedback Hub app. If enough people requests or upvote feedback for it, Microsoft may add it.
    Good idea, I will do that now.

    I wouldn't have known how to schedule a scan if I hadn't read this thread, and I wouldn't have been able to work it out myself as it's quite an involved process.
      My Computer


  4. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #13

    Brink said:
    C:\Program Files\Windows Defender\MpCmdRun.exe
    That is always an old copy of MpCmdRun.exe. WD now adds & uses new versions of MpCmdRun.exe in new subfolders within C:\ProgramData\Microsoft\Windows Defender\Platform
    [it also keeps copies in a few other locations but this is the location it uses as you can see by checking the properties of the antimalware service executable in Task manager]
    - To run a scan, I use a batch file to identify the latest subfolder and then run a -scan command within that folder.
    - I use a similar method to update malware definitions

    Code:
    set GetLatestVersionPath="dir "C:\ProgramData\Microsoft\Windows Defender\Platform" /ad /od /b"
    FOR /F "tokens=*" %%i IN (' %GetLatestVersionPath% ') Do Set LatestVersionPath=%%i
    "C:\ProgramData\Microsoft\Windows Defender\Platform\%LatestVersionPath%\MpCmdRun.exe" -Scan -1
    These are useful switches
    -Scan -1 runs Quick scan
    -Scan -2 runs Full scan
    -SignatureUpdate
    updates the malware definitions


    You can get info on MpCmdRun command line switches in its own help info -
    First, go to the folder identified above then
    either
    [in a command window]
    enter the command
    Code:
    MpCmdRun.exe /?
    or
    [in a PowerShell window]
    enter the command
    Code:
    .\MpCmdRun.exe /?

    I hope this is helpful,
    Denis
    Last edited by Try3; 04 May 2019 at 22:12.
      My Computer


  5. Posts : 1,116
    win 10 pro x64 os build 20H2
       #14

    How to Schedule a Scan in Microsoft Defender Antivirus in Windows 10-defenderscan.png

    have that wired error (0x2) next to the task scheduler item i created whats up??
      My Computer


  6. Posts : 68,953
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #15

    Hello @Tonyb,

    What do you have set for the task?
      My Computers


  7. Posts : 1,116
    win 10 pro x64 os build 20H2
       #16

    i have it set to run a scan its trigger is C:\ProgramData\Microsoft\Windows Defender\platform\4.18.1907.4-0\MpCmdRun.exe the task is set for every week on a sunday ? i will see if it runs and that error goes a away.
      My Computer


  8. Posts : 373
    Windows 10 Home 21H2
       #17

    I worked my way through the options, but I couldn't see any option for file selection. Does that option exist?

    The problem is that a complete scan takes about 3 hours. I'm not keen on that amount of continuous running because of the heat. So I use manual scanning.

    I know from trial-and-error which contiguous folders I need to scan to produce a 30-minute job. So I manually scan 2 or 3 bunches daily, then start again.

    Thanks.
      My Computer


  9. Posts : 68,953
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #18

    OldGrantonian said:
    I worked my way through the options, but I couldn't see any option for file selection. Does that option exist?

    The problem is that a complete scan takes about 3 hours. I'm not keen on that amount of continuous running because of the heat. So I use manual scanning.

    I know from trial-and-error which contiguous folders I need to scan to produce a 30-minute job. So I manually scan 2 or 3 bunches daily, then start again.

    Thanks.

    Hello mate,

    Yeah, this scheduled scan is only to scan the system and not a file.

    For scan files, it's usually easier to do so on demand by selecting the files you want to scan and using the Scan with Windows Defender context menu.
      My Computers


  10. Posts : 211
    Windows10 21H2 x64 Home, Single language, build 19044.1706
       #19

    @Brink
    Hi Shawn, I had an (advanced) scheduled WD task running made by Acer without the Basic trigger tab (it had -trigger 55 as a command argument in the actions tab). I disabled that task and then enabled it again but somehow the command line got corrupted. The other 3 WD tasks still run OK and have this in the actions tab: C:\ProgramData\Microsoft\Windows Defender\platform\4.18.2006.9-0\MpCmdRun.exe with argument -IdleTask -TaskName WdCacheMaintenance
    I am looking for the argument for Scheduled Job.
    Also the other 3 WD tasks have the path with command without quotes but I have to put quotes otherwise the argument is not accepted (ran Task Scheduler as administrator) . I don't really want to restore my system for this and would appreciate if you can help me with the argument for an advanced scheduled job and let me know why I cannot enter the path without quotes like the other 3 jobs have. I will also check my old File History %systemroot%\System32\Tasks for the original settings.

    Edit 5:45 pm
    After a reboot the WD Schedule scan Task was automatically reset to its original state with a "1999 date", I ran it manually and I think its OK now, we will see after a while....
    Thanks
    Frank
    Last edited by FrankW; 25 Jun 2020 at 04:47.
      My Computer


 

Tutorial Categories

How to Schedule a Scan in Microsoft Defender Antivirus in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:08.
Find Us




Windows 10 Forums