Threat Eraser
Windows 10 & 11 Buy license · $69.95
Protection basics

How to schedule a regular virus scan in Windows 11 and Windows 10

Set up daily or weekly Microsoft Defender quick or full scans with Task Scheduler in Windows 11 and 10, make sure they run, and check the results.

Updated 4 minute read The Threat Eraser team

To schedule a virus scan in Windows 11 or 10, open Task Scheduler, go to Task Scheduler Library > Microsoft > Windows > Windows Defender, open Windows Defender Scheduled Scan and add a trigger with the day and time you want. Alternatively, create your own task that runs Microsoft Defender's command-line scanner. Windows Security has no simple "schedule" button, so Task Scheduler is the built-in way to do it.

Windows already runs background scans during its automatic maintenance, but those happen when Windows decides the PC is idle. A scheduled scan lets you choose a regular time, such as overnight or during lunch, so you know it has been done.

Method 1: Add a trigger to Defender's scheduled scan task

  1. Press the Start button, type Task Scheduler and open it.
  2. In the left pane, expand Task Scheduler Library > Microsoft > Windows and click Windows Defender.
  3. In the middle pane, double-click Windows Defender Scheduled Scan.
  4. Open the Triggers tab and click New….
  5. Choose Daily or Weekly, set a start time and (for weekly) tick the days. Make sure Enabled is ticked, then click OK.
  6. On the Conditions tab, you may want to untick Start the task only if the computer is idle and, on a laptop, Start the task only if the computer is on AC power, so the scan actually runs when you expect it to.
  7. Click OK to save. You may be asked for an administrator password.

This task runs the type of scan Defender is configured for, which is a quick scan by default.

Method 2: Create your own quick or full scan task

If you want a specific scan type, create a separate task. This also leaves Microsoft's own task untouched.

  1. Open Task Scheduler and click Create Basic Task… in the right-hand pane.
  2. Give it a name such as Weekly full virus scan and click Next.
  3. Choose Daily or Weekly, then set the time and days.
  4. For the action, choose Start a program.
  5. In Program/script, enter "C:\Program Files\Windows Defender\MpCmdRun.exe"
  6. In Add arguments, enter -Scan -ScanType 1 for a quick scan or -Scan -ScanType 2 for a full scan.
  7. Tick Open the Properties dialog for this task when I click Finish, then click Finish.
  8. In Properties, select Run whether user is logged on or not and Run with highest privileges, then click OK.
Tip: to test the task, right-click it in Task Scheduler and choose Run. Then open Windows Security > Virus & threat protection > Protection history to confirm a scan took place and see any results.

How often should you scan, and which scan?

Scan typeWhat it checksSuggested schedule
Quick scanCommon malware locations, startup items and running processesDaily, or several times a week
Full scanEvery file on every fixed driveWeekly or monthly, at a time the PC is on but not busy
Microsoft Defender Offline scanScans before Windows starts, for hidden threatsOnly when you suspect an infection; run it manually

Real-time protection is still your main defence; scheduled scans are a safety net that catches anything that slipped past or arrived before definitions were updated. A full scan can take an hour or more on a large drive, so schedule it when you will not mind the PC being a little slower.

Make sure the scan can run

  • Leave the PC on or asleep, not shut down. In the task's Settings tab, tick Run task as soon as possible after a scheduled start is missed so a missed scan runs next time the PC is on.
  • Wake the computer. On the Conditions tab, tick Wake the computer to run this task if you schedule scans overnight.
  • Keep definitions current. In Windows Security > Virus & threat protection > Protection updates, click Check for updates occasionally, or let Windows Update handle it.
  • Check the results. A scan nobody looks at is not much use. Review Protection history every week or two.

If a scheduled scan finds something, see how to remove a virus from Windows, and if you are not sure a detection is real, read what to do about a false positive.

Scheduling scans with Threat Eraser

Threat Eraser makes scheduling far simpler than Task Scheduler. Open Tools > Scheduled Scans, choose a daily or weekly Quick Scan or Full Scan and pick a time; Threat Eraser sets up the Windows Task Scheduler entry for you. Scans use Threat Eraser's automatically updated definitions, made up of virus signatures and malware detection rules, and every result is saved in Scan History, where you can export a report as HTML, CSV or text.

Because Threat Eraser downloads fresh definitions every time it starts, each scheduled scan checks your PC against current virus signatures and malware detection rules. Anything it finds can be quarantined and erased, and with Real-Time Watch turned on, new files in your watched folders are also scanned a moment after they arrive, so the schedule becomes a regular safety net rather than your only check. Scheduled scans, quarantine, Real-Time Watch and report export are licensed features.

Find out more about Threat Eraser's scheduled scans.

Frequently asked questions

Does Windows scan automatically without a schedule?

Yes. Defender runs periodic quick scans during automatic maintenance, but you cannot easily control when they happen.

Will a scheduled scan run if my PC is off?

No. It can run when the PC is next switched on if you enable the option to run a missed task as soon as possible.

Does a scheduled scan slow down my computer?

Full scans use more disk and processor time, so schedule them when you are not doing demanding work.

Get three guides like this every month, plus software update notices.Subscribe →