Fix Error 0x8007007f on Windows 11
In this article
Error 0x8007007f on Windows 11 usually means that a file or component Windows needs is missing or corrupted, often during updates, app installations, or system file checks. The quickest fix is to run the System File Checker and DISM tools, then restart your PC. Below are the full steps, plus what to do if the error persists.
What You'll Need
- Administrator access to your Windows 11 PC
- An internet connection (for downloading repair files)
- About 15–30 minutes of time
Step-by-Step
- Restart your PC. Sometimes the error is temporary. Save your work, then click Start > Power > Restart.
- Run the System File Checker (SFC). Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin). In the window, type
sfc /scannowand press Enter. Wait for the scan to finish (it can take 10–20 minutes). If it finds and repairs issues, restart your PC and check if the error is gone. - Run DISM (Deployment Imaging Service and Management). If SFC didn't fix it or couldn't run, open an admin terminal again and run these commands one by one, pressing Enter after each:
DISM /Online /Cleanup-Image /CheckHealthDISM /Online /Cleanup-Image /ScanHealthDISM /Online /Cleanup-Image /RestoreHealth
- Check for Windows updates. Go to Settings > Windows Update and click Check for updates. Install any pending updates, then restart.
- Run the Windows Update troubleshooter. Open Settings > System > Troubleshoot > Other troubleshooters. Find Windows Update and click Run. Follow the prompts.
- Repair the Microsoft Store (if the error appears when installing apps). Open Settings > Apps > Installed apps. Find Microsoft Store, click the three-dot menu, select Advanced options, then click Repair. If that doesn't help, click Reset (this will clear the Store's cache and data, but won't remove your installed apps).
- Create a new user account (if the error persists). Sometimes a corrupted user profile causes this. Go to Settings > Accounts > Other users > Add account. Choose Add a user without a Microsoft account (or follow the prompts to create a local account). Log into the new account and see if the error occurs there.
- Perform a system restore (if you have a restore point). Search for Create a restore point in the Start menu, open the System Properties window, click System Restore, and follow the wizard to a point before the error started.
Common Mistakes
- Skipping the restart after SFC/DISM. The repairs often need a reboot to take effect.
- Running SFC without admin rights. The command will fail if you don't open the terminal as administrator.
- Interrupting DISM. Let it finish even if it seems stuck. Closing the window can cause more corruption.
- Ignoring pending Windows updates. Outdated system files can trigger this error.
- Using third-party “registry cleaners” or “fixers”. These can make things worse and are not recommended by Microsoft.
Tips
- Always back up important files before making system changes, especially if you plan to reset or reinstall Windows.
- If the error happens while installing a specific app, try uninstalling the app first, then reinstalling it from the Microsoft Store or the official website.
- Make sure your PC has enough free disk space (at least 10–15 GB) for Windows updates and system repairs.
- Keep your drivers updated, especially chipset and storage drivers, from the manufacturer's website.
Troubleshooting
If the steps above don't resolve the error, try these additional checks in order:
- Check disk errors. Open an admin terminal and run
chkdsk /f /r. You'll need to restart your PC; it will check the drive before Windows loads. This can take a long time, so plan accordingly. - Reset Windows Update components manually. In an admin terminal, stop the update services with these commands:
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver
Then rename the SoftwareDistribution and Catroot2 folders:ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 Catroot2.old
Restart the services:net start wuauserv net start cryptSvc net start bits net start msiserver
Then try Windows Update again. - Use the Media Creation Tool to perform an in-place upgrade. Download the Windows 11 Installation Assistant or Media Creation Tool from Microsoft's official website. Run it and choose Upgrade this PC now. This keeps your files and apps but repairs system files. It's a safe last resort before a full reset.
- If nothing else works, reset Windows. Go to Settings > System > Recovery > Reset PC. Choose Keep my files to preserve personal data (but apps will be removed). This is the most thorough fix, but it will take time and you'll need to reinstall your programs.
Frequently Asked Questions
What exactly causes error 0x8007007f?
It's typically caused by corrupted system files, a damaged Windows Update component, or a problem with the Microsoft Store cache. It can also appear when a required file is missing or blocked by security software.
Will I lose my files if I run SFC or DISM?
No, both tools only repair system files and don't touch your personal data. However, it's always wise to back up before any repair.
Can I fix this error without admin rights?
No, SFC, DISM, and most repair steps require administrator privileges. You'll need to log in with an admin account or get an admin to help.
How long does DISM /RestoreHealth take?
It can take anywhere from 10 to 30 minutes, depending on your system and internet speed. Don't interrupt it.
Is this error related to a virus?
Not usually, but malware can cause file corruption. If you suspect an infection, run a full scan with Windows Security or your preferred antivirus before attempting repairs.
What if the error appears when I try to open a specific program?
That suggests the program's files are corrupted. Try reinstalling the program, or run its built-in repair option (often found in Settings > Apps > Installed apps > select the app > Advanced options > Repair).