will a scheduled scan run if I switch my PC on after the scheduled time?

C W 20 Reputation points
2026-09-12T09:51:12.97+00:00

If if set up a scheduled scan using PowerShell or Windows Task Scheduler (triggering) at 4 am, and I switch my PC on at 8 am, will the scan still go ahead? I cannot find the answer on the internet.

Microsoft Security | Microsoft Defender | Other
0 comments No comments

Answer accepted by question author
Marcin Policht 107.3K Reputation points MVP Volunteer Moderator
2026-09-12T11:13:22.49+00:00

Yep, but this depends on how you configure the Windows Task Scheduler trigger. If you create a task with a 4:00 AM daily trigger and your PC is powered off or asleep at 4:00 AM, Windows does not automatically assume the task should run at 8:00 AM. However, Task Scheduler has a specific setting called “Run task as soon as possible after a scheduled start is missed”. If you enable this option, Windows will detect that the 4:00 AM trigger was missed and, when the PC becomes available at 8:00 AM, it will start the scan shortly afterward.

In Task Scheduler, this setting is found under the task's Properties → Settings tab. Enable “Run task as soon as possible after a scheduled start is missed.” You can also configure “Wake the computer to run this task” under the Conditions tab if the PC is asleep rather than completely powered off. If the computer is completely shut down at 4:00 AM, however, the wake option cannot start it unless you have configured hardware/firmware features such as a BIOS/UEFI scheduled wake.

If you're using Microsoft Defender's PowerShell Start-MpScan, for example, you could create a scheduled task that runs at 4:00 AM and executes something such as Start-MpScan -ScanType QuickScan. With the missed-start option enabled, if the computer is turned off at 4:00 AM and you turn it on at 8:00 AM, the scheduled task can run the scan after startup. Without that option, the 4:00 AM occurrence is simply missed and the next scheduled occurrence would normally be the following day.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.