Skip to content
Follow
Windows 🟡 Intermediate

What To Do When Settings Privacy And Security Windows Security Virus Scan Hangs

Richard
Written by
Richard
Sep 10, 2026 6 min read
What to do when Settings Privacy and security Windows Security virus scan hangs
What to do when Settings Privacy and security Windows Security virus scan hangs

A Windows Security virus scan hangs when the built-in antivirus program stops moving forward while checking files on your PC. This freezing issue usually happens because of corrupted system files, a stuck update, or a conflict with third-party antivirus software running in the background.

Advertisement
⚡ Quick Answer

To fix a Windows Security virus scan that hangs, restart your computer, install any pending updates in the Windows Update settings, or reset the security app using PowerShell. If the scan still freezes, run the System File Checker tool in the Command Prompt to repair any damaged system files.

Advertisement

You can usually fix a stuck scan by restarting the Windows Security service, clearing out temporary files, or running a quick check using the Command Prompt. Figuring out what blocks the scan saves you time and gets your computer protected again fast.

  • Corrupted Temporary Files: Windows keeps temporary files to help apps load faster. Sometimes these files get damaged and confuse the scanner.
  • Very Large Compressed Files: If your computer is scanning a massive compressed archive (like a huge ZIP file), it can take a very long time, making it look like it is frozen.
  • Conflicting Software: If you have another antivirus program installed, it might clash with Windows Security and stop the scan.
  • Pending System Updates: Sometimes Windows needs a restart to finish installing important updates before security tools can work correctly.

Several targeted methods resolve these frozen scans, starting with the simplest ones.

Step 1Restart Your Computer and Try Again

Restarting your computer is the simplest way to fix when your Windows Security virus scan hangs. A basic reboot clears temporary system memory and shuts down hidden background programs that might be blocking your virus scan from finishing normally.

  1. Click the Windows Start button on your screen.
  2. Click the Power icon.
  3. Choose Restart.
  4. Wait for your computer to turn back on completely.
  5. Open your security settings again and try running the virus scan.

If the scan still freezes, move on to the next step.

Step 2Check for Windows Updates

Checking for Windows updates can fix a virus scan that hangs because of known software bugs. Microsoft frequently releases patches through the update center that resolve issues causing built-in security tools to freeze during normal file scans.

Advertisement
  1. Open the Windows Start menu and type Settings, then press Enter.
Start Menu
Start Menu
  1. Click on Windows Update on the left or right side of the window.
Settings › Windows Update
Settings › Windows Update
  1. Click the button that says Check for updates.
  2. If any updates appear, let your computer download and install them.
  3. Restart your computer if prompted, then try your virus scan again.

Step 3Run the Built-In Troubleshooting Tool

Running the built-in troubleshooting tool helps fix problems with system apps when your Windows Security virus scan hangs. You can use simple commands in PowerShell to reinstall and repair the security app so it runs smoothly again.

  1. Open the Windows Start menu, type PowerShell, right-click it, and choose Run as administrator. (Administrator privileges required)
  2. In the blue window that opens, type the following command and press Enter: Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
  3. Wait for the process to finish. This resets the Windows Security app back to its original factory settings.
Windows Security
Windows Security
  1. Close the window, restart your computer, and test the virus scan.

Step 4Use Command Prompt to Repair Corrupted System Files

Command Prompt
Command Prompt

Using Command Prompt to repair corrupted system files can stop your Windows Security virus scan from hanging. Damaged system files often cause security tools to freeze when the scanner tries to read broken data on your hard drive.

  1. Open the Start menu, type Command Prompt, right-click it, and select Run as administrator. (Administrator privileges required)
  2. Type the following command carefully and press Enter: DISM.exe /Online /Cleanup-image /Restorehealth
  3. Wait for this process to reach 100%. This repairs the underlying system image.
  4. Next, type this command and press Enter: sfc /scannow
  5. Wait for the scan to finish. If it finds broken files, it will fix them automatically.
  6. Restart your computer and run your virus scan again.

Step 5Clear Temporary Files

Clearing temporary files gives your computer a fresh start if your Windows Security virus scan hangs on junk data. Old cache files and temporary system data frequently stall security scans by making the app read unnecessary files.

  1. Open the Start menu and go to Settings.
  2. Click on System, then select Storage.
  3. Click on Temporary files. (Give your computer a moment to calculate what is in there).
  4. Check the boxes next to the types of temporary files you want to remove (such as temporary files, thumbnails, and delivery optimization files). Do not worry; deleting these will not hurt your personal documents.
  5. Click the Remove files button at the top or bottom of the screen.

Unique Expert Tip 1: Temporarily Clear Protection History

Clearing your protection history folder is a great fix when your Windows Security virus scan hangs because of corrupted logs. Windows keeps a detailed record of past threats, and if this log folder gets too large, the scanner will freeze while reading it.

Advertisement

To fix this, you need to manually clear the protection history folder:

  1. Open the Start menu, type Windows Security, and open the app.
  2. Click on Virus & threat protection.
  3. Click on Protection history. If the app freezes here or takes too long to load, you definitely need to clear this folder.
  4. Open File Explorer and navigate to this exact folder path: C:\ProgramData\Microsoft\Windows Defender\Support (Note: You may need to enable "Show hidden files" in File Explorer to see the ProgramData folder).
  5. Look for files related to protection history or scan history and delete them, or clear the contents of the Scan folder located inside the Windows Defender directory.
  6. Restart your computer and check if your virus scan works normally.

Unique Expert Tip 2: Check for Conflicting Third-Party Antivirus Software

Checking for conflicting third-party antivirus software helps resolve issues when your Windows Security virus scan hangs. Leftover files and background services from old security programs like McAfee or Norton often fight with Windows Security and cause scans to freeze.

To make sure no old software is causing your scan to freeze:

  1. Open the Start menu and go to Settings.
  2. Click on Apps, then select Installed apps.
  3. Scroll through the list and look for any old antivirus programs, security trial software, or cleanup tools you no longer use.
  4. If you find any, click the three dots next to the app name and select Uninstall.
  5. Go to the official website of that old antivirus maker and download their special removal tool (often called a "cleanup utility" or "uninstaller tool"). Run that tool to wipe away any hidden leftovers.
  6. Restart your computer and try running your Windows Security scan again.

How to Perform a Scan in Safe Mode

📝Good to KnowPerforming a virus scan in Safe Mode lets you bypass background apps and drivers that cause your Windows Security scan to hang.

Safe Mode starts your computer with only the essential services needed to run, stopping other software from interfering with your scan.

  1. Open your Start menu, click the Power icon, hold down the Shift key on your keyboard, and click Restart.
  2. Your computer will restart to a blue options screen. Click on Troubleshoot.
  3. Click on Advanced options.
  4. Click on Startup Settings. (If you do not see it, click "See more recovery options" at the bottom).
  5. Click the Restart button.
  6. When your computer reboots, you will see a list of choices. Press the number 4 or F4 on your keyboard to select Enable Safe Mode.
  7. Once your computer boots into Safe Mode (your screen will look a bit plain, which is normal), open Windows Security and start your virus scan. Because background apps are turned off, the scan should finish without freezing.
  8. When the scan is complete, simply restart your computer normally to exit Safe Mode.

Summary

Fixing a Windows Security virus scan that hangs usually involves clearing temporary files, updating your system, removing old antivirus software, or running repair commands. Most freezing issues stem from background software conflicts, corrupted logs, or damaged system files.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Reset Windows Security App in Windows 11
Windows How to Reset Windows Security App in Windows 11
Every Windows 11 Recovery Mode Command Prompt Command You Need
Windows Every Windows 11 Recovery Mode Command Prompt Command You Need
What To Do When Windows Security Fails To Open After A Security Update
Windows What To Do When Windows Security Fails To Open After A Security Update
How to choose network sharing options for Delivery Optimization in Windows 11
Windows How to choose network sharing options for Delivery Optimization in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *