When your Windows system starts throwing errors or acting sluggish, these two commands—sfc /scannow and dism /online /cleanup-image /restorehealth—are your secret weapons. ⚡ I’ve used them to rescue systems stuck in boot loops, fix corrupted updates, and revive performance after malware scans.
They don’t just patch files—they rebuild Windows’ core integrity from the ground up.
The sfc /scannow command scans for corrupted system files and replaces them using cached copies, while dism /online /cleanup-image /restorehealth goes deeper, repairing Windows image files that SFC can’t touch.
Think of it as a two-step deep clean: first the surface-level fixes, then the structural repairs. You’ll need admin rights and a stable connection—no shortcuts here.
You’ll know it worked when your system boots cleaner, updates install without errors, and apps launch without crashes. But if you hit errors like “Windows Resource Protection could not perform the requested operation,” don’t panic—we’ll cover those fixes too.
Just run them in Safe Mode if normal mode fails, and always back up critical files first.
These commands aren’t just for emergencies. Run them every few months as preventive maintenance, especially after major updates or malware scans. It’s the difference between a system that limps along and one that runs like it’s fresh out of the box. Let’s get your Windows back to peak performance.
📚 In This Guide
- What you need
- Instructions
- Tips and common mistakes
- Wrapping up and next steps
What you need
- ● Windows PC running Windows 7, 8, 8.1, 10, or 11 (32-bit or 64-bit).
- ● Administrator access – You must run these commands as an admin.
- ● Stable internet connection (for Windows updates, if needed).
- ● Command Prompt (Admin) – Accessible via: Press Win + X → Select “Terminal (Admin)” or “Command Prompt (Admin)”.
- ● Or search for “cmd”, right-click, and choose “Run as administrator”.
- ● Windows Installation Media (USB/DVD) – Needed if DISM fails due to corrupted system files.
- ● Third-party repair tools (e.g., CCleaner, Malwarebytes) – For pre/post-cleanup optimization.
- ● Backup drive/external storage – Always back up critical data before running system repairs.
- ● Close unnecessary programs to free up system resources.
- ● Ensure your PC has at least 20% free disk space (DISM may need temporary storage).
- ● Disable antivirus temporarily (some may block command execution).
How to run SFC scannow and DISM RestoreHealth in Windows
Here’s the precise, step-by-step method I use to repair corrupted system files.
💻 Step 1: Open Command Prompt as Administrator
Press the Windows key + X and select Windows Terminal (Admin) or Command Prompt (Admin). If prompted by UAC, click Yes to grant elevated privileges. This is critical—running these commands without admin rights will fail silently.
Here’s the thing—some Windows versions hide the admin option. If you don’t see it, right-click the Start menu and select Windows Terminal (Admin) directly. The black command window will open with “Administrator:” in the title bar—verify this before proceeding.
⌨️ Step 2: Run SFC Scannow First
Type the exact command sfc /scannow and press Enter. The scan will begin immediately, checking all protected system files against a cached copy on your hard drive. This process typically takes 10-15 minutes depending on your storage speed and system load.
Watch for the “Windows Resource Protection found corrupt files” message. If it reports no issues, you can skip DISM entirely. But if it finds problems, note the exact number of corrupt files—this helps determine if DISM is needed for deeper repair. Don’t close the window until you see “Verification 100% complete”.
💡 Step 3: Execute DISM RestoreHealth
After SFC completes, type dism /online /cleanup-image /restorehealth and press Enter. This command uses Windows Update to replace corrupted files with fresh copies from Microsoft’s servers. The process takes 20-40 minutes—longer if your internet connection is slow.
I always run this immediately after SFC because DISM handles files that SFC can’t repair. If you see “The restore operation completed successfully”, you’re good to go. But if it fails with 0x800f081f or similar, we’ll troubleshoot that in the next section.
⏰ Step 4: Verify System Integrity and Reboot
Once both commands finish, type exit to close the Command Prompt. Reboot your system immediately—this ensures all repairs take effect. After restarting, open Command Prompt (Admin) again and rerun sfc /scannow to confirm no issues remain.
Real talk: Some users skip the verification step, but I don’t. A clean system should show “Windows Resource Protection did not find any integrity violations”. If problems persist, we’ll need to explore deeper diagnostics like DISM /Get-WindowsImage or manual repair sources.
Tips & tricks for running SFC scannow and DISM RestoreHealth
These precision-focused tips will help you navigate the repair process smoothly and avoid common pitfalls that can derail your system recovery.
Administrator Privileges Are Non-Negotiable: In Step 1, if you encounter issues launching Command Prompt as admin, try pressing Ctrl+Shift+Enter instead of just Enter when right-clicking the app. This forces the elevated prompt to open correctly. I’ve seen users waste hours troubleshooting because they missed this simple keyboard shortcut. Also, verify the “Administrator:” prefix in the title bar—anything less means you’re not running with proper permissions.
Monitor the SFC Scannow Process: During the 10-15 minute scan in Step 2, keep an eye on the progress percentage. If it stalls at 50% or below for more than 5 minutes, your system may have severe corruption preventing proper file verification. In this case, proceed directly to DISM without waiting for SFC completion—sometimes the second command can salvage what the first couldn’t. Don’t close the window prematurely; the final “Verification 100% complete” message is your confirmation that SFC had a chance to work.
Internet Connection Matters for DISM: The 20-40 minute DISM process in Step 3 requires active internet access to download replacement files from Microsoft’s servers. If you’re on a slow connection, consider temporarily pausing other downloads or switching to a wired connection. I’ve seen DISM operations fail with error 0x800f081f when users tried running it over spotty Wi-Fi. For offline systems, you’ll need to use alternative repair sources like installation media, which I’ll cover in the troubleshooting section.
Verification Step Can’t Be Skipped: That final SFC verification in Step 4 isn’t just busywork—it’s your quality control. Some users report temporary fixes that reappear after reboots because they skipped this step. The “no integrity violations” message means your system files are truly clean. If you see any remaining issues, don’t assume it’s fixed; you’ll need to run the commands again or explore deeper diagnostics as mentioned in the instructions.
Pro Tips for Sfc /Scannow Dism /Online /Cleanup-Image /Restorehealth
- These precision-focused tips will help you navigate the repair process smoothly and avoid common pitfalls that can derail your system recovery.
- Administrator Privileges Are Non-Negotiable: In Step 1, if you encounter issues launching Command Prompt as admin, try pressing Ctrl+Shift+Enter instead of just Enter when right-clicking the app.
- Monitor the SFC Scannow Process: During the 10-15 minute scan in Step 2, keep an eye on the progress percentage.
Frequently asked questions
Got questions about sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth? You’re not alone! Here are the most common queries—and their straightforward answers—to help you troubleshoot like a pro.
How long does sfc /scannow or DISM /RestoreHealth take to run?
The runtime varies based on your system’s health and specs. Typically, sfc /scannow takes 10–30 minutes, while DISM /RestoreHealth can run 20–60 minutes (or longer if corruption is severe). Don’t interrupt it! Patience pays off—these tools repair critical Windows files systematically.
Will these commands delete my files or reset Windows?
Nope! Neither sfc /scannow nor DISM /RestoreHealth erase your personal files, apps, or settings. They only scan and repair corrupted system files. Think of them as a tune-up, not a factory reset. Your documents, photos, and programs stay safe.
What if sfc /scannow says “Windows Resource Protection found corrupt files but couldn’t fix some”?
This is a common but fixable issue. Run DISM /Online /Cleanup-Image /RestoreHealth next—it often resolves what SFC misses. If both fail, boot into Safe Mode and retry. Still stuck? Check for malware or consider a clean Windows installation as a last resort.
Are there alternatives if these commands don’t work?
Yes! Try these steps in order:
- System File Checker in Safe Mode: Boot into Safe Mode (hold
Shift+ restart) and rerunsfc /scannow. - Windows Update Troubleshooter: Download Microsoft’s official tool to fix update-related corruption.
- In-place Upgrade: Use the Media Creation Tool to “upgrade” your Windows without losing files (back up first!).
If corruption is deep, a clean install might be necessary—but save that as a last step!
Should I run both commands every time my PC acts up?
Not necessarily! Use them selectively:
- Start with
sfc /scannow—it’s faster and catches most issues. - Only use
DISM /RestoreHealthif SFC fails or you suspect Windows image corruption (e.g., after a failed update). - Pro tip: Run them monthly as preventive maintenance if your PC is unstable or you install many updates.
Overusing them won’t hurt, but they’re not magic—combine them with restarts and updates for best results!
Wrapping up and next steps
Mastering the sfc /scannow and DISM /online /cleanup-image /restorehealth commands can save your Windows system from corruption headaches! These tools are your first line of defense for maintaining a smooth, healthy PC. 🛠️
Now that you’re equipped with the knowledge, take action—run these commands regularly, especially after updates or unexpected crashes. Your system will thank you with better performance and stability. Ready to dive deeper? Explore Windows troubleshooting guides or check your system’s health with Task Manager next! 🚀
- How To Restore Files From OneDrive: Step-By-Step Recovery Guide - November 30, 2026
- Why Does My Excel Keep Freezing: Quick Fixes to Speed Up Slow Spreadsheets - November 30, 2026
- Excel Pivot Charts: Dynamic Data Visualization in Minutes - November 30, 2026