Bad Image Error Windows 11: Fix It Now
In this article
Yes, the "bad image" error on Windows 11 means a program or system file is corrupted or incompatible, and the fix usually involves repairing or reinstalling the affected app, or running system file checks. Below are the exact steps to resolve it.
What You'll Need
- Administrator access to your Windows 11 PC (you'll need to confirm UAC prompts).
- An internet connection for downloading updates or reinstalling apps.
- Your Windows login password if you're not already signed in as admin.
Step-by-Step
- Identify which program triggers the error. The error dialog usually shows the program name (e.g., "Photos.exe") and the faulty DLL file (e.g., "msvcp140.dll"). Note both.
- Restart your PC. Sometimes a temporary glitch causes the error. Save your work, then restart and see if the error reappears.
- Run Windows Update. Go to Settings > Windows Update, click Check for updates, and install any pending updates. Restart if prompted.
- Run the System File Checker (SFC). Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin). Type
sfc /scannowand press Enter. Wait for the scan to complete (may take 10–15 minutes). Restart if it finds and fixes issues. - Run DISM to repair system image. In the same admin terminal, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This can take up to 30 minutes. Restart afterward. - Reinstall the problematic app. If the error is from a specific program (like a game or a photo editor):
- Go to Settings > Apps > Installed apps.
- Find the app, click the three dots, and choose Uninstall.
- Restart your PC, then download the latest version from the official website or Microsoft Store and reinstall it.
- Repair Microsoft Visual C++ Redistributables. Many "bad image" errors involve missing or corrupt Visual C++ runtime files. Download the latest Visual C++ Redistributable packages from Microsoft's official site (search "Visual C++ Redistributable latest supported downloads"). Install both x64 and x86 versions, then restart.
- Check for corrupted DLL files from the specific app. If the error names a DLL (like
d3dcompiler_47.dll), search for that DLL name plus "Windows 11" to find the official fix. Often, reinstalling the app or updating your graphics driver solves it. - Update your graphics and chipset drivers. Go to Settings > Windows Update > Advanced options > Optional updates and install any driver updates. Alternatively, visit your PC or motherboard manufacturer's support site for the latest drivers.
- Run a clean boot. This helps isolate if a third-party service is causing the error. Press
Win + R, typemsconfig, and press Enter. On the Services tab, check Hide all Microsoft services, then click Disable all. On the Startup tab, click Open Task Manager, disable all startup items, then restart. If the error disappears, re-enable services one by one to find the culprit.
Common Mistakes
- Skipping the restart after SFC or DISM. These tools often need a reboot to finish repairs.
- Downloading DLL files from random websites. This is risky and often makes things worse. Always reinstall the app or use official Microsoft tools.
- Ignoring the program name. If the error says "Photos.exe", reinstalling Photoshop won't help. Target the correct app.
- Running SFC without admin rights. It will fail or not work properly. Always use an admin terminal.
Tips
- Keep Windows and all your drivers updated regularly to prevent such errors.
- Use the official Microsoft Visual C++ Redistributable installer—it's safe and fixes many runtime issues.
- If the error occurs when launching a game, try verifying the game files through the game launcher (Steam, Epic, etc.) before reinstalling.
- Create a system restore point before making major changes, so you can roll back if needed.
Troubleshooting
If the steps above didn't fix the error:
- Check if the error appears after a specific update. Go to Settings > Windows Update &em; Update history and uninstall the most recent update, then restart. If that fixes it, reinstall the update later after checking for a newer one.
- Run the Windows Memory Diagnostic. Press
Win + R, typemdsched.exe, and press Enter. Choose to restart and check for memory problems. This can rule out RAM issues. - Use System Restore. If the error started recently, restore your PC to a point before it began. Search for "Create a restore point" in the Start menu, click System Restore, and follow the prompts.
- Reset the problematic app. In Settings > Apps > Installed apps, click the app's three dots, choose Advanced options, then click Repair or Reset. This may fix corrupted app data without uninstalling.
- If all else fails, perform an in-place upgrade repair. Download the Windows 11 Installation Assistant from Microsoft's official site, run it, and choose "Keep personal files and apps". This reinstalls the OS while preserving your data.
Frequently Asked Questions
What does "bad image" error mean on Windows 11?
It means a program tried to load a DLL or executable file that is corrupted, incompatible, or missing. This often happens after a partial update or an app installation gone wrong.
Can I ignore the bad image error?
You can click "OK" or "Cancel" to dismiss it, but the program may crash or not work properly. It's best to fix it to avoid further issues.
Why does the error mention a DLL file I don't recognize?
That DLL is usually a runtime component (like Visual C++ or DirectX) that the app needs. Reinstalling the app or the runtime library usually resolves it.
Will I lose my files if I run SFC or DISM?
No, these tools only repair system files. Your personal files remain untouched.
Do I need to reinstall Windows to fix this?
Rarely. The steps above resolve most cases. Only if nothing works and the error is widespread might you consider a repair install, which keeps your files.
Why does the error occur only with one specific app?
That app likely has a corrupted installation or relies on a DLL that's missing or outdated. Reinstalling that app is the most direct fix.