How to schedule a Windows Defender Antivirus scan on Windows 10

Windows Defender Antivirus is the security solution available on every installation of Windows 10 to protect your device and files from unwanted viruses, spyware, ransomware, and other types of malware and online threats.

The antimalware offers real-time protection functionality to detect and remove malware proactively, and you even get the option to start a scan manually. You can also schedule a Windows Defender Antivirus scan at your preferred day of the month and time to create an extra layer of security. However, it's not an option that you can enable through the Windows Security app. Instead, it's something that you have to configure manually using the Task Scheduler.

In this Windows 10 guide, we'll walk you through the steps to schedule a manual scan of Windows Defender Antivirus on your computer.

How to schedule a Windows Defender Antivirus scan using Task Scheduler

To schedule a Windows Defender Antivirus scan manually on your device, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, and click the top result to open the app.
  3. Browse the following path:Task Scheduler Library > Microsoft > Windows > Windows Defender
  4. Right-click the "Windows Defender Scheduled Scan" task, and select the Properties option.

  1. Click the Triggers tab.
  2. Click the New button.

  1. Use the "Begin the task" drop-down menu to select one of the many triggers, including "On a schedule," "At startup," "On workstation unlock," and many others. For this guide, select the On a schedule option.
  2. Select the Weekly option from the left side (or the option that best suits your situation).
  3. Using the "Start" settings, specify when the task should start running and the time (very important).
  4. Specify the number of weeks when to recur the task.
  5. Check the day of the week that you want the scan to take place.

  1. Click the OK button.
  2. (Optional) Click the Conditions tab.
  3. Under the "Power" section, check the Stop if the computer switches to battery power option to prevent affecting the battery life on your laptop.

  1. Click the OK button.

Once you complete the steps, the built-in antivirus will run automatically using the schedule that you specified.

How to schedule a Windows Defender Antivirus custom scan using Task Scheduler

If using the built-in task doesn't work, or you see the error 0x2, under the "Last Run Result" column, you can set up a custom schedule using a new task.

To create a custom malware scan using Task Scheduler, use these steps:

  1. Open Start.
  2. Search for Task Scheduler, click the top result to open the app.
  3. Right-click the "Task Scheduler Library" branch, and select the New Folder option.

  1. Type a name for the folder. For example, MyTasks. (This step isn't a requirement, but it's a recommended step to keep your tasks separate from the system tasks.)
  2. Click the OK button.
  3. Expand the "Task Scheduler Library" branch, and select the MyTasks folder.
  4. Click the Action menu.
  5. Select the Create Task option.

  1. In the "Name" field, type a descriptive name for the task. For example, My Windows Defender Antivirus scheduled task.
  2. In the "Security options" section, you can configure which administrator account can run the task.Quick tip: If you're using an account with administrative privileges, the default user should be fine.
  3. Check the Run with highest privileges option.

  1. Click the Triggers tab.
  2. Click the New button.
  3. Use the "Begin the task" drop-down menu to select one of the many triggers, including "On a schedule," "At startup," "On workstation unlock," and many others. For this guide, select the On a schedule option.
  4. Select the Weekly option from the left side (or the option that best suits your situation).
  5. Using the "Start" settings, specify when the task should start running and the time (very important).
  6. Specify the number of weeks when to recur the task.
  7. Check the day of the week that you want the scan to take place.

  1. (Optional) In the "Advanced settings" section, you can select options to delay, repeat, stop, and expire a task. Also, leave the Enabled option checked.
  2. Click the OK button.
  3. Click the Action tab
  4. Click the New button.
  5. Use the "Action" drop-down menu and select the Start a program option.
  6. Under the "Settings" section, in the "Program/script" field, specify the path for the Windows Defender Antivirus program:"%ProgramFiles%\Windows Defender\MpCmdRun.exe"

  1. In the "Add arguments" field, specify the type of scan you want to run:-Scan -ScanType 2The above argument performs a full malware scan, but you can use the -Scan -ScanType 1 argument to specify a quick scan, or you can use the -Scan -ScanType 3 -File PATH/TO/FILE/OR/FOLDER to scan a particular location or file.
  2. Click the OK button.
  3. (Optional) Click the Conditions tab.
  4. Under the "Power" section, check the Stop if the computer switches to battery power option to prevent affecting the battery life on your laptop.
  5. Click the OK button.

After you complete the steps, authenticate with your account credentials, and then the Windows Defender Antivirus will run automatically on schedule.

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.