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.
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.
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.
- Click the Windows Start button on your screen.
- Click the Power icon.
- Choose Restart.
- Wait for your computer to turn back on completely.
- 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.
- Open the Windows Start menu and type Settings, then press Enter.

- Click on Windows Update on the left or right side of the window.

- Click the button that says Check for updates.
- If any updates appear, let your computer download and install them.
- 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.
- Open the Windows Start menu, type PowerShell, right-click it, and choose Run as administrator. (Administrator privileges required)
- In the blue window that opens, type the following command and press Enter:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage - Wait for the process to finish. This resets the Windows Security app back to its original factory settings.

- Close the window, restart your computer, and test the virus scan.
Step 4Use Command Prompt to Repair Corrupted System Files

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.
- Open the Start menu, type Command Prompt, right-click it, and select Run as administrator. (Administrator privileges required)
- Type the following command carefully and press Enter:
DISM.exe /Online /Cleanup-image /Restorehealth - Wait for this process to reach 100%. This repairs the underlying system image.
- Next, type this command and press Enter:
sfc /scannow - Wait for the scan to finish. If it finds broken files, it will fix them automatically.
- 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.
- Open the Start menu and go to Settings.
- Click on System, then select Storage.
- Click on Temporary files. (Give your computer a moment to calculate what is in there).
- 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.
- 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.
To fix this, you need to manually clear the protection history folder:
- Open the Start menu, type Windows Security, and open the app.
- Click on Virus & threat protection.
- Click on Protection history. If the app freezes here or takes too long to load, you definitely need to clear this folder.
- 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). - 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.
- 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:
- Open the Start menu and go to Settings.
- Click on Apps, then select Installed apps.
- Scroll through the list and look for any old antivirus programs, security trial software, or cleanup tools you no longer use.
- If you find any, click the three dots next to the app name and select Uninstall.
- 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.
- Restart your computer and try running your Windows Security scan again.
How to Perform a Scan in Safe Mode
Safe Mode starts your computer with only the essential services needed to run, stopping other software from interfering with your scan.
- Open your Start menu, click the Power icon, hold down the Shift key on your keyboard, and click Restart.
- Your computer will restart to a blue options screen. Click on Troubleshoot.
- Click on Advanced options.
- Click on Startup Settings. (If you do not see it, click "See more recovery options" at the bottom).
- Click the Restart button.
- 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.
- 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.
- 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?
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.
No comments yet — be the first to share your thoughts!