- Use the Task Scheduler to define automatic scan frequencies and times.
- Differences between quick scan, full scan and offline mode for removing persistent viruses.
- Advanced security management using PowerShell commands, MpCmdRun, and remote administration portals.
Keeping your computer running smoothly isn't just about dusting your keyboard; it's about ensuring your system is protected against any threat. While many people think installing third-party software is the only solution, the reality is that Windows' built-in antivirus has evolved significantly and is now a powerful tool that rivals any other option on the market.
The best part is that Microsoft Defender works silently, keeping an eye out for any unwanted software on your PC while you browse or download files. However, for those of us who prefer complete control and want to leave nothing to chance, knowing how to schedule thorough scans is essential to ensure that no persistent threats remain hidden in the corners of the hard drive.
How to schedule automated scans using the Task Scheduler

If you want your antivirus to run at a specific time or frequency without you having to lift a finger, the key is the Windows Task Scheduler. To begin, type the name of this tool in the search box on the taskbar and run the application.
Once inside, the path is straightforward, but pay attention to avoid getting lost. In the left-hand menu, expand the Task Scheduler Library folder, go to Microsoft, then Windows, and finally locate the folder called Windows Defender . There you'll see several options, but the one we're interested in is called Windows Defender Scheduled Scans, which you should double-click.
Now we come to the important part: the configuration. In the properties window that opens, go to the Triggers tab and click the New button. This is where the magic happens, as you can choose whether you want the scan to run daily, weekly, or even at system startup , which is ideal for cleaning your computer right before you start working.
Different types of analysis and when to use them

Not all scans are the same, and depending on what you're looking for, you'll need to choose one or another. The quick scan is the most common and recommended for scheduled tasks, as it focuses on Registry keys and startup folders where malware that boots with the system often hides.
If you notice your PC is running slowly or suspect something is amiss, the best course of action is to run a full scan , which analyzes absolutely every file on your machine. Additionally, there's a custom scan for specific areas and an offline mode . The latter is invaluable when dealing with persistent viruses, as it restarts your computer and scans the system before Windows loads , preventing malware from activating or protecting itself.
Advanced methods for expert users and administrators

For those who are more comfortable with a console or manage multiple teams, there are much more direct ways. Through PowerShellYou can run an immediate analysis with the command Start-MpScan or configure specific preferences so that quick scanning includes routes that would normally be excluded.
If you're a system administrator, you can forget about going PC by PC and use the Microsoft Defender portal or Microsoft Intune. From these platforms, you can launch remote scans by selecting the device, choosing the scan type, and confirming the action. You can then check the task's status in the history of actions and submissions.
It's also possible to interact with the antivirus via the traditional command line. By locating the Defender platform folder and running the MpCmdRun.exe file with the appropriate parameters, you can easily launch quick scans. Even for more technical users, Windows Management Instrumentation (WMI) offers the MSFT_MpScan class's Start method for integrating security into more complex scripts.
We have an integrated system that allows us to schedule everything from simple tasks in the scheduler to managing security remotely or using advanced commands. Whether opting for a quick daily scan, a deep scan at system startup, or using offline mode to eliminate stubborn threats, having an automated scanning strategy is the best way to keep your system healthy without having to constantly monitor it.
