f your Windows PC is acting strangely—apps crashing, slow performance, random errors, or system features not working properly—there’s a chance some system files are corrupted or missing.
Windows relies on protected system files to run smoothly. When these files are damaged, your system becomes unstable.
Fortunately, Windows includes built-in tools you can run through CMD (Command Prompt) to check and repair system file integrity. The two most important tools are:
- SFC (System File Checker)
- DISM (Deployment Image Servicing and Management)
In this guide, you’ll learn how to use both tools step by step.
What is System File Integrity?
System file integrity simply means checking whether Windows system files are:
- Intact
- Unmodified
- Not corrupted
- Properly working
When integrity is compromised, your PC may show issues like:
- Blue screen errors
- Apps not opening
- Windows updates failing
- Random freezing or lag
Method 1: Check System Files Using SFC (System File Checker)
SFC is the first tool you should use.
Step 1: Open Command Prompt as Administrator
- Click Start
- Type CMD
- Right-click Command Prompt
- Select Run as Administrator
Step 2: Run SFC Command
Type the following command:
sfc /scannow
Then press Enter.
What Happens Next?
Windows will:
- Scan all protected system files
- Detect corrupted or missing files
- Automatically replace them with correct versions
Step 3: Wait for the Scan to Complete
The process may take:
- 10 to 30 minutes depending on your PC
Do not close CMD during the scan.
Step 4: Check Results
After scanning, you may see one of these messages:
1. No Integrity Violations Found
Your system files are healthy.
2. Corrupt Files Found and Repaired
Windows fixed the issue automatically.
3. Corrupt Files Found but Could Not Be Fixed
You need to use DISM (next method).
Method 2: Repair System Image Using DISM
If SFC fails, DISM is the next step.
DISM repairs the Windows system image itself, which helps SFC work properly.
Step 1: Open CMD as Administrator
Same as before:
- Start → CMD → Run as Administrator
Step 2: Run DISM Scan
Type:
DISM /Online /Cleanup-Image /CheckHealth
This quickly checks if corruption exists.
Step 3: Deep Scan
For a more detailed scan:
DISM /Online /Cleanup-Image /ScanHealth
Step 4: Repair System Image
If issues are found, run:
DISM /Online /Cleanup-Image /RestoreHealth
What This Does
DISM:
- Downloads clean system files from Windows Update
- Replaces corrupted system components
- Prepares your system for SFC repair
Step 3: Run SFC Again (Important)
After DISM completes, run SFC again:
sfc /scannow
This ensures all corrupted files are fully fixed.
Real-World Example
Imagine your PC suddenly:
- Cannot open Settings
- Keeps crashing apps
- Shows missing DLL errors
Running:
SFC /scannowDISM /RestoreHealthSFC /scannowagain
often restores everything back to normal without reinstalling Windows.
Pros and Cons of Using SFC and DISM
Pros
- Built into Windows (no download needed)
- Fixes deep system issues
- Safe and official Microsoft tools
- Can solve problems without reinstalling OS
Cons
- Takes time to complete
- Requires admin access
- Some issues may still require full Windows reset
Common Issues and Fixes
1. SFC Won’t Start
Make sure CMD is run as Administrator.
2. DISM Stuck at Certain Percentage
Wait patiently—this is normal on slow systems.
3. Internet Required for DISM
Yes, DISM may need internet to download replacement files.
When Should You Use These Tools?
Use SFC and DISM when:
- Windows is behaving abnormally
- System files are suspected to be corrupted
- After malware removal
- After failed updates
- Apps keep crashing
Frequently Asked Questions (FAQ)
1. Is SFC safe to use?
Yes, it is a built-in Microsoft tool and completely safe.
2. How long does SFC take?
Usually 10–30 minutes depending on your system speed.
3. Can SFC delete my files?
No, it only repairs system files, not personal data.
4. Do I need internet for SFC?
No, but DISM may require internet.
5. What if DISM fails?
You may need to use Windows installation media or reset Windows.
Final Thoughts
Checking system file integrity using CMD is one of the most powerful troubleshooting techniques in Windows. With just a few commands—SFC and DISM—you can diagnose and repair deep system issues without reinstalling your operating system.
If your PC is acting unstable, slow, or showing errors, these tools should always be your first step before considering more advanced fixes.
Once you get used to them, they become essential tools for keeping your Windows system healthy and running smoothly.