Windows

2 Fast Ways to Schedule a Windows Defender Scan

Learn two simple ways to schedule Windows Defender scans in Windows, including the built-in Task Scheduler method and a quick alternative for running regular security checks.

Chris Anderson
Chris Anderson
How-To Writer  •  Sep 19, 2026  •  5 min read

Windows Defender, now called Microsoft Defender Antivirus, can scan your PC automatically—but Windows does not always give you an obvious “schedule scan” button. If you want regular security checks at a specific time, there are two practical ways to set them up.

This guide shows a built-in Task Scheduler method and a simpler alternative for creating recurring Defender scans without relying on guesswork.

2 Fast Ways to Schedule a Windows Defender Scan

What You Need Before You Start

You should be signed in with an administrator account, since Defender scan tasks usually need admin permissions. It also helps to know whether you want a quick scan, a full scan, or a custom scan of certain folders, because the schedule command can be adjusted for different scan types.

Key Fact Microsoft Defender Antivirus is built into Windows 10 and Windows 11, but scheduled scans are typically managed through Task Scheduler rather than a dedicated scheduling screen.

Method 1: Schedule a Defender Scan with Task Scheduler

Task Scheduler is the most direct way to create a recurring Defender scan. It lets Windows launch the Defender command-line tool at a time you choose.

  1. Press Windows + S, type Task Scheduler, and open it.
  2. In the left pane, expand Task Scheduler Library.
  3. Open Microsoft, then Windows, then Windows Defender.
  4. Look for the scheduled Defender scan task and open its properties if it already exists.
  5. If you want a custom schedule, create a new basic task or new task in the right pane instead of editing the existing one.
  6. Set the trigger to Daily, Weekly, or another interval that matches how often you want the scan to run.
  7. Choose the action to start a program, then use the Defender command-line tool to run the scan.
  8. Save the task, enter administrator credentials if prompted, and test it once manually to confirm it works.

When you create the action, the scan command is usually built around MpCmdRun.exe, which is Defender’s command-line utility. The exact path can vary slightly, but it is commonly found inside the Windows Defender folder under Program Files.

Warning Be careful when editing existing scheduled tasks. If you change the wrong trigger or action, you may interfere with other security-related Windows maintenance tasks.
Note On some systems, the built-in Defender scan task may already exist but be disabled. If that is the case, enabling it may be easier than creating a new task from scratch.

Method 2: Use a Simple Batch File with Task Scheduler

If you do not want to type the full Defender command directly into Task Scheduler, you can place the scan command in a batch file and schedule that file instead. This is often easier to manage if you want to reuse the same scan settings later.

  1. Open Notepad and create a small batch file that launches the Defender scan command you want to use.
  2. Save the file with a .bat extension, for example defender_scan.bat.
  3. Open Task Scheduler and create a new task or basic task.
  4. Set the trigger to the time and frequency you want.
  5. For the action, choose Start a program and point it to the batch file.
  6. Save the task and run it once to make sure the batch file starts the scan correctly.

This method is useful if you want to keep the scheduled task simple while still controlling the scan behavior through the batch file. If you later want to change from a quick scan to a full scan, you can edit the batch file instead of rebuilding the task.

Best For Users who want a reusable setup and prefer changing scan behavior in one place instead of editing Task Scheduler every time.

Which Scan Type Should You Schedule?

A quick scan is usually the best option for routine checks because it finishes faster and looks at the most common places malware hides. A full scan is better if you are troubleshooting a possible infection, after installing suspicious software, or when you want a deeper check of the entire system.

Why It Matters Choosing the right scan type keeps scheduled security checks useful. A daily full scan may be unnecessary for most users, while a quick scan may not be enough if you are actively investigating a threat.

Common Problems If the Scheduled Scan Does Not Run

If the task does not seem to work, the most common causes are a wrong file path, missing administrator rights, a disabled task, or a trigger that is set incorrectly. The task can also fail if Windows security settings or third-party antivirus software are taking over real-time protection.

Quick Tip After creating the task, run it manually once. If it works on demand but not on schedule, the trigger or power settings are usually the problem.

A Simpler Rule to Remember

If you want the most control, use Task Scheduler directly. If you want a setup that is easier to edit later, use a batch file and schedule that instead. Both methods give you a reliable way to keep Microsoft Defender scanning your PC on a regular basis.

Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows