TechBuzzPro

Computer Freezing During Defender Scan: Fixes to Try

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To stop your computer from freezing during a Microsoft Defender scan, you should first limit the CPU usage of the scan via PowerShell or exclude large, non-essential folders from the scan process. Freezing typically occurs because the antivirus is consuming 100% of your processor's resources or hitting a corrupted file that causes a system hang. By capping the resource usage or narrowing the scan scope, you allow the OS to maintain stability while the security check continues.

What You'll Need

  • A computer running Windows 10 or Windows 11.
  • Administrative privileges (you must be logged in as an Administrator to change system settings and run PowerShell as admin).
  • A stable internet connection to download system updates if needed.
  • A backup of your critical data, just in case a system crash occurs during the troubleshooting process.

Step-by-Step

Follow these methods in order, starting with the least invasive changes. Note that menu labels may differ slightly depending on your specific version of Windows or regional settings.

  1. Limit CPU Usage via PowerShell

    By default, Microsoft Defender may use as much CPU power as available, which can starve other processes and cause the UI to freeze. You can cap this percentage.

    • Right-click the Start button and select Windows Terminal (Admin) or Windows PowerShell (Admin).
    • In the blue window, type the following command: Set-MpPreference -ScanAvgCPULoadFactor 30
    • Press Enter. This tells Defender to try and keep its average CPU usage around 30%. You can change the number to any value between 5 and 100 depending on your hardware capabilities.
    • Restart your computer and attempt the scan again to see if the freezing persists.
  2. Add Exclusions for Large Folders

    If Defender freezes when hitting a specific directory—such as a massive game folder, a virtual machine disk, or a database—adding an exclusion can prevent the hang.

    • Open Settings > Privacy & security > Windows Security.
    • Click on Virus & threat protection.
    • Under Virus & threat protection settings, click Manage settings.
    • Scroll down to the Exclusions section and click Add or remove exclusions.
    • Click Add an exclusion and select Folder.
    • Browse to and select folders that contain very large files that you trust (e.g., a Steam library folder or a backup archive).
  3. Run System File Checker (SFC) and DISM

    System freezes are often caused by corrupted OS files that Defender triggers when it attempts to scan them. Repairing the system image often resolves this.

    • Right-click the Start button and open Windows Terminal (Admin) or Command Prompt (Admin).
    • Type sfc /scannow and press Enter. Wait for the process to complete. If it finds and fixes errors, restart your PC.
    • If the problem remains, go back to the admin command prompt and type: DISM /Online /Cleanup-Image /RestoreHealth
    • Press Enter. This connects to Windows Update to replace corrupted files with healthy versions.
  4. Update Windows and Defender Definitions

    Outdated definitions or a pending OS update can cause compatibility issues that lead to kernel-level freezes during deep scans.

    • Go to Settings > Windows Update.
    • Click Check for updates and install all pending updates, including optional updates.
    • To specifically update Defender, go to Windows Security > Virus & threat protection > Protection updates and click Check for updates.
  5. Perform a Clean Boot

    Third-party software (like other antivirus remnants or system optimizers) can conflict with Defender, causing the system to lock up.

    • Press Windows Key + R, type msconfig, and press Enter.
    • On the Services tab, check the box that says Hide all Microsoft services. This is critical to avoid disabling essential Windows functions.
    • Click Disable all.
    • Go to the Startup tab and click Open Task Manager.
    • Disable all startup items listed.
    • Restart your computer and run the Defender scan. If it doesn't freeze, a third-party app was the cause.
  6. Check Disk for Errors

    If your hard drive has bad sectors, Defender may freeze the entire system when it attempts to read a corrupted block of data.

    • Open Command Prompt (Admin).
    • Type chkdsk C: /f /r and press Enter.
    • You will be asked if you want to schedule the scan for the next restart. Type Y and press Enter.
    • Restart your computer. Windows will scan the disk before booting. This can take several hours depending on the drive size.

Common Mistakes

  • Disabling the Firewall: Some users disable the Windows Firewall thinking it reduces the load on the system. This does not stop the Defender scanner from consuming CPU/Disk resources and leaves the system vulnerable.
  • Using Third-Party "Optimizer" Apps: Running "RAM boosters" or "Registry cleaners" while a scan is running can cause a conflict that leads to a Blue Screen of Death (BSOD) or a hard freeze.
  • Ignoring the 'Hide all Microsoft services' checkbox: During a clean boot, forgetting to hide Microsoft services can lead to disabling the login screen or network drivers, making the computer unusable until you boot into Safe Mode.
  • Running Multiple Antivirus Programs: Having two active real-time scanners (e.g., Defender and a third-party suite) often causes them to fight over the same file, resulting in a total system lock-up.

Tips

  • Schedule Scans for Off-Hours: Instead of running a Full Scan manually during work, use the Task Scheduler to run it at 3:00 AM when you aren't using the PC.
  • Use Quick Scan First: Most threats are found in memory and common startup folders. A Quick Scan is far less likely to freeze the system than a Full Scan.
  • Monitor Task Manager: Keep Task Manager open (Ctrl + Shift + Esc) on the Performance tab while scanning. If you see Disk usage hit 100% and stay there, the issue is likely your hard drive speed rather than the CPU.
  • Boot into Safe Mode with Networking: If the PC freezes every single time in normal mode, try running the scan in Safe Mode. This loads only the bare minimum drivers and can help identify if a driver is causing the conflict.

Troubleshooting

If the steps above do not stop the freezing, consider these advanced scenarios:

The PC freezes and requires a hard reboot: This often indicates a hardware failure or a driver conflict. Check your event viewer (Right-click Start > Event Viewer > Windows Logs > System) for "Critical" errors occurring at the exact time of the freeze. Look for "Kernel-Power" or "Disk" errors.

The scan stops at a specific percentage every time: This is a strong sign of a corrupted file or a bad sector on the hard drive. If chkdsk did not fix it, you may need to use a bootable offline scanner (like the Microsoft Defender Offline scan) which runs before the Windows OS loads, bypassing the freezing issue.

The CPU usage is low, but the mouse still freezes: This is often a sign of "Disk Thrashing." If you are using a mechanical HDD instead of an SSD, the drive may be unable to keep up with the read requests. Ensure your drive is not fragmented (for HDDs) and that there is at least 15% free space on the C: drive.

Frequently Asked Questions

Does limiting CPU usage make the scan take longer?

Yes. By capping the CPU at 30%, the scanner will process files more slowly, but it prevents the system from becoming unresponsive, allowing you to continue working.

Can a virus cause Defender to freeze the computer?

Yes. Some sophisticated malware is designed to crash security software or trigger system instability when it detects a scan is attempting to access its hidden files.

Is it safe to exclude my entire C: drive from scanning?

No. This effectively disables the antivirus for your entire system, leaving you completely unprotected against threats. Only exclude specific, trusted folders.

Why does my computer freeze only during a Full Scan and not a Quick Scan?

Full Scans examine every single file on the disk, including system archives and deep directories. Quick Scans only check the most likely locations for malware, which puts significantly less strain on the hardware.

Will updating my BIOS help with system freezes?

In some cases, yes. BIOS updates can improve system stability and hardware compatibility, which can resolve rare kernel-level hangs triggered by high-intensity tasks like full-disk scanning.