Run Windows Defender at Startup: Settings and Fixes
In this article
Microsoft Defender Antivirus normally starts with Windows and provides real-time protection in the background. If you want it to check for threats as the computer starts, use its scheduled scan settings; a full scan does not automatically run at every startup by default. The steps below cover Windows 10 and Windows 11. Sign in with an administrator account, save your work, and make sure Windows Security is available. Menu names can vary slightly by Windows version.
What You'll Need
- A Windows 10 or Windows 11 PC.
- An administrator account to change antivirus and task settings.
- Microsoft Defender Antivirus enabled. A compatible third-party antivirus may disable Defender's active protection.
- Internet access is recommended so protection updates can be downloaded before a scan.
Step-by-Step
- Check that Defender is active. Open Start, search for Windows Security, and open the app. Select Virus & threat protection. Look for Microsoft Defender Antivirus and its protection status. If Windows Security says another provider is active, that provider may be managing antivirus instead. Do not run two real-time antivirus products at once; check the other product's settings or uninstall it if you intend to use Defender.
- Turn on real-time protection. In Windows Security, select Virus & threat protection, then Manage settings under Virus & threat protection settings. Turn on Real-time protection. If the control is unavailable or keeps switching off, a security policy, organization administrator, or another antivirus may be controlling it. Do not try to bypass a work or school policy.
- Update Defender's security intelligence. On the Virus & threat protection page, find Protection updates and select Check for updates. Current definitions help the scan recognize recent threats. Install any offered Windows updates as well, then restart if Windows requests it.
- Choose the scan you want to run. Select Scan options. A Quick scan checks common locations and is suitable for routine checks. A Full scan checks files and running programs across the device and can take a long time. Choose the scan and select Scan now to run it immediately. This confirms scanning works, but it does not schedule a scan at every startup.
- Schedule a scan with Task Scheduler. To run a scan automatically, open Start, search for Task Scheduler, and launch it as an administrator. In the left pane, browse to Task Scheduler Library > Microsoft > Windows > Windows Defender. Look for the task named Windows Defender Scheduled Scan. The exact task names and availability can differ between Windows releases.
- Set a suitable trigger. Right-click Windows Defender Scheduled Scan and select Properties. Open the Triggers tab and select New. Choose a schedule, such as daily or weekly, and set a time when the PC is usually on. To run a scan near startup, select At startup if that trigger is offered, then choose any delay options available. A short delay lets Windows finish loading and can reduce startup slowdowns. Select Enabled, then OK. If the task or trigger is missing, see Troubleshooting rather than creating a task with guessed commands.
- Review the task's conditions and settings. In the task's Conditions and Settings tabs, check that options will not prevent it from running on your PC. For example, a laptop may be set to run only on AC power, or the task may stop if it runs too long. Keep sensible safeguards, especially on battery-powered devices. Apply changes and approve the administrator prompt if shown.
- Test and confirm the schedule. Right-click the task and select Run, if available. Then open Windows Security and check Protection history for scan results. In Task Scheduler, review Last Run Time and Last Run Result. Restart the PC at a convenient time to test an enabled startup trigger; a scheduled scan may wait for a delay or for the device to become idle.
Common Mistakes
- Expecting Defender to show a startup-app entry. Antivirus protection is a Windows service, not an ordinary app that needs to be added to the Startup folder. Adding a shortcut there does not reliably schedule a scan.
- Confusing real-time protection with a startup scan. Real-time protection monitors files and activity continuously when enabled. It is different from a full scan launched at startup.
- Scheduling a full scan every boot. Full scans can use significant time and system resources. A regular scheduled scan, plus real-time protection, is generally more practical than a full scan on every restart.
- Disabling safeguards to force a task to run. Avoid changing unfamiliar task actions, registry entries, or security policies. These changes can weaken protection or prevent Windows from maintaining Defender correctly.
Tips
- Schedule scans for a time when the computer is powered on, and leave it plugged in if it is a laptop.
- Keep real-time protection enabled and security intelligence current; a startup scan is not a substitute for either.
- Use Protection history to review detections and actions. If Defender finds something, follow the recommended quarantine or removal steps and restart if requested.
- If you only need to check a particular file or folder, right-click it in File Explorer and choose Scan with Microsoft Defender when that option is available.
Troubleshooting
- Real-time protection is off or unavailable: Check whether another antivirus is installed and active. If this is a work or school computer, contact its administrator. Otherwise, restart Windows, install pending updates, and check Windows Security again.
- The scheduled task is missing or cannot be edited: Make sure Task Scheduler is open with administrator privileges and that Defender is enabled. Task details differ across Windows versions, and organizational policies may restrict access. Install Windows updates; if the task remains absent, use Windows Security's scan options or contact Microsoft support rather than inventing a replacement task.
- The scan does not run at startup: Confirm the task is enabled and its trigger is enabled. Check the task's conditions, last-run result, and History tab. A trigger can be delayed, skipped when conditions are not met, or run after startup rather than before sign-in.
- Windows Security reports an error or scan results do not appear: Restart the PC, update Windows and Defender security intelligence, and try a Quick scan from the app. If a third-party antivirus is involved, consult its instructions before removing it. Persistent errors may require the Windows Security troubleshooter or help from Microsoft support.
- You suspect an infection that blocks normal scanning: In Windows Security, open Scan options and consider Microsoft Defender Offline scan. Save your work first: Windows restarts to scan outside the usual environment. Follow the on-screen prompts and review Protection history afterward.
Frequently Asked Questions
Does Microsoft Defender already run when Windows starts?
When Defender is the active antivirus, its protection services normally start with Windows. You do not need to add the Windows Security app to the Startup folder for real-time protection.
Can I make a full scan run every time I start my PC?
A Task Scheduler trigger may allow a scan at startup, but options vary by Windows version and policy. Running a full scan at every boot can slow startup; a less frequent schedule is usually more practical.
Will a scheduled scan run if my PC is turned off?
No scan can run while the PC is off. Depending on task settings, Windows may run it later when the computer is on, or skip it if the trigger or conditions are not met.
Can I use Defender alongside another antivirus?
Windows may disable Defender's real-time antivirus protection when a compatible third-party product is active. Avoid running two real-time antivirus products simultaneously; check Windows Security to see which provider is protecting the device.
How can I tell whether the startup scan worked?
Check the task's Last Run Time and Last Run Result in Task Scheduler, then review Windows Security's Protection history for scan activity or detections.