Windows Defender Scan Stuck at 50% or 99% – Fix
Your Windows Defender scan hangs at 50% or 99% for hours. This fix clears the scan cache and restarts the service. Works on Windows 10 and 11.
Quick answer
Open Command Prompt as admin, type sc stop WinDefend then sc start WinDefend. This restarts the service and usually unsticks the scan. If that doesn't work, follow the full steps below.
Why this happens
Windows Defender (now called Microsoft Defender Antivirus) can get stuck at a certain percentage — most often 50% or 99%. This happens when the scan hits a file it can't read quickly, like a large zip archive, a corrupted system file, or a file that's being used by another program. On Windows 10 version 22H2 and Windows 11 version 23H2, I've seen this most often with game folders or backup files. The scan engine gets into a loop trying to inspect the file and just hangs there. It's not a virus or a serious error — it's a timeout issue in the scan engine.
Fix: Clear the scan cache and restart Defender
Do these steps in exact order. Don't skip any.
- Open Command Prompt as administrator. Click Start, type
cmd, right-click Command Prompt, choose "Run as administrator". Click Yes when the UAC box pops up. You should see a black window with a blinking cursor. - Stop the Defender service. Type
sc stop WinDefendand press Enter. You should see a message that says "SERVICE_STOP_PENDING" and then "STOPPED". If you see "ACCESS_DENIED", you didn't run as admin — go back to step 1. - Delete the scan cache folder. Type
del /f /s /q "C:\ProgramData\Microsoft\Windows Defender\Scans\*"and press Enter. This deletes all cached scan data. The folder might show "access denied" for some files — that's okay, the important ones delete. After it finishes, typemkdir "C:\ProgramData\Microsoft\Windows Defender\Scans"to recreate the folder if it disappeared. - Start the Defender service. Type
sc start WinDefendand press Enter. You should see "SERVICE_START_PENDING" then "RUNNING". Wait 10 seconds. - Open Windows Security. Press the Windows key, type
Windows Security, open it. Go to "Virus & threat protection" and run a Quick Scan. It should start fresh and finish within 5 minutes.
After you do this, the scan should complete normally. If it gets stuck again at the same percentage, the problem is probably a specific file. See the alternative fixes below.
If the main fix doesn't work
Try these in order. Only move to the next if the one before fails.
1. Run the scan in Safe Mode
Boot into Safe Mode with Networking. To do that: hold Shift while clicking Restart in the Start menu. Then go to Troubleshoot > Advanced options > Startup Settings > Restart. Press 5 for Safe Mode with Networking. Once in Safe Mode, run the Defender scan from Windows Security. Safe Mode loads only essential drivers, so Defender has an easier time. After the scan finishes, reboot normally.
2. Add the stuck folder as an exclusion
If you notice the scan always gets stuck on a specific folder (like your Steam library or a backup drive), exclude that folder from future scans. Open Windows Security > Virus & threat protection > Manage settings > Add or remove exclusions. Click Add an exclusion, choose Folder, and pick the problem folder. Then run a full scan again.
3. Use the Microsoft Safety Scanner
Download the Microsoft Safety Scanner from Microsoft's website. Run it as admin. This is a standalone tool that doesn't rely on the Defender service. It might detect things Defender missed. It's about 100MB and takes 15-30 minutes. Delete it after use — it's a one-time tool.
4. Repair Windows Defender
Open Settings (Windows key + I) > Apps > Apps & features. Find "Windows Security" in the list, click the three dots, choose Advanced options > Reset. This rebuilds the Defender components without deleting your personal files. Then restart your PC.
How to prevent this from happening again
Here's the honest truth: Windows Defender gets stuck on big archive files like .zip and .rar, and on game files with many small files. The real prevention is to exclude folders that don't change often. I exclude my Downloads folder and my Steam library folder. I also run a Quick Scan once a week instead of a Full Scan — Quick Scans check system memory, startup items, and common malware locations. They almost never get stuck. If you need a full system check, use the Microsoft Safety Scanner once a month. It's more reliable for deep scans.
Another tip: keep your Windows updated. Microsoft fixes these timeout bugs in cumulative updates. Check for updates in Settings > Windows Update > Check for updates. Install any pending updates and restart. I've seen Defender scans stop hanging after a feature update.
Was this solution helpful?