Fix OneDrive bad image errors in this order: repair or reinstall OneDrive first, then check Windows system files, then roll back the latest update if the error began after a patch. Skipping the wrong layer wastes time and leaves sync and startup failures in place. This guide gives the fastest checks, the exact commands, and when to stop before heavier repairs.
What the OneDrive bad image error means
The error indicates Windows stopped OneDrive.exe during startup because the file or one of its loaded components could not load correctly, and it may appear with status 0xc0000020. If the message names a DLL, that file is likely part of the failure path, so you can pick the next fix instead of guessing.
When the message mentions wer.dll, SyncEngile.dll, or ucrtbase.dll, the issue may involve a damaged app component or a Windows component file.
OneDrive bad image decision table
| Symptom | Most likely cause | Best first fix | Fallback fix |
|---|---|---|---|
| OneDrive.exe bad image at launch | Damaged OneDrive files | Reset OneDrive | Uninstall and reinstall OneDrive |
| SyncEngile.dll mentioned in the error | Damaged app file or shared runtime file | Run sfc /scannow |
Install the latest version of Visual C++ Redistributable |
| wer.dll or ucrtbase.dll named | Corrupted OS or runtime file | Run sfc /scannow |
Install the latest Windows update |
| Error appears after a Windows update | Update regression | Install the latest Windows update | Uninstall the faulty Windows Update |
| Error persists after reinstall | OS file corruption, disk errors, or a damaged redistributable | Run SFC scan | Check the disk for errors and repair the redistributable |
| OneDrive sync service fails, but the app opens | Service conflict | Clean Boot | Uninstall and reinstall the program |
| Repeated DLL-related startup failures | Damaged DLL registration | Re-register the concerned DLL file | Use Regsvr32 to unregister and register the file again |
| Error continues after the usual repairs | Damaged OneDrive or Visual C++ Redistributable installation | Reset or Reinstall OneDrive | Install the latest version of Visual C++ Redistributable |
Say your laptop throws the error only after a restart, but the same account opens OneDrive fine on another PC. That pattern points to a local Windows problem, not an account problem.
What is the most likely cause?
Most often, the failure starts with damaged OneDrive files. Less often, Windows system files are corrupted, a recent Windows Update introduced the problem, disk errors are present, or another installed component needs repair. Damaged OneDrive or Visual C++ Redistributable installation can also trigger the issue.
Fix damaged OneDrive files first
- Press Win + R, type %localappdata%\Microsoft\OneDrive\OneDrive.exe /reset, then press Enter.
- Wait a minute or two for OneDrive to reopen on its own.
- If it does not reopen, open Start and launch OneDrive manually.
- If the error returns, go to Settings > Apps > Installed apps in Windows 11, or Settings > Apps > Apps & features in Windows 10.
- Select Microsoft OneDrive, choose Uninstall, then reinstall OneDrive.
- Try OneDrive again. If it opens and sync starts, stop here.
A common first mistake is reinstalling before checking whether the app can reset cleanly. If the error returns immediately after reset, the installation itself is more likely damaged than the temporary app state.
Should you run SFC or DISM?
Run sfc /scannow first when the error mentions wer.dll, SyncEngile.dll, or ucrtbase.dll, or when reinstalling OneDrive does not help. SFC checks protected Windows files and can repair corrupted files or replace missing files.
- Open Windows Terminal or Command Prompt as administrator.
- Run
sfc /scannow. - Restart Windows.
- If OneDrive still fails, open an elevated terminal again and run
sfc /scannowagain if needed after the repair, or continue with the next repair step if Windows reports it could not fix everything. - Restart again, then relaunch OneDrive and check whether the error disappears.
If SFC reports that it found problems but could not fix all of them, the Windows component store or another protected file may still need repair. If the error remains after the scan, move to the next sourced fixes below.
Did a Windows update trigger it?
Yes. Windows Update can both fix and cause this problem. If the timing matches a recent patch, install the latest Windows update first, then decide whether to remove the update that landed before the failure. That sequence matters more than reinstalling OneDrive too early.
- Open Settings > Windows Update.
- Install the latest Windows update.
- Restart and test OneDrive.
- If the issue started right after a specific update, open Control Panel > Programs > Programs and Features > View installed updates, remove the faulty Windows Update, then test again.
Use a clean boot to find conflicts
Clean Boot starts Windows with minimal drivers and startup programs. Use it when OneDrive opens on one boot but fails on another, or when a background program may be interfering. This is also the right path when the sync service fails but the main app seems intact.
- Press Win + R, type msconfig, and open System Configuration.
- On Services, check Hide all Microsoft services, then select Disable all.
- Open Task Manager from the Startup tab and disable startup programs.
- Restart Windows and launch OneDrive.
- If it works, re-enable items one at a time until the error returns.
Still not working?
Check whether the problem is tied to a damaged Visual C++ Redistributable installation or a DLL that needs to be re-registered. Install the latest version of Visual C++ Redistributable, then re-register the concerned DLL file if the same DLL name keeps appearing.
If the error still persists, run a disk check for errors, because disk errors can cause this issue. Also rerun sfc /scannow if Windows files may still be damaged after the earlier repair steps.
Frequently asked questions
What does OneDrive.exe bad image error status 0xc0000020 mean?
It means Windows stopped OneDrive.exe during startup because the file or one of its loaded components could not load correctly. The code 0xc0000020 often appears alongside a DLL name such as wer.dll, SyncEngile.dll, or ucrtbase.dll, which helps narrow the repair path.
Should I run SFC or DISM for OneDrive bad image?
Run sfc /scannow first. If SFC reports unrepaired files or the error continues, repeat the scan after other repair steps or proceed with reinstalling OneDrive and the redistributable repair path. That order checks ordinary file corruption before moving to reinstall or component repair.
Can Windows Update cause OneDrive bad image?
Yes. A recent update can trigger the error, and a later update may fix it. Check Settings > Windows Update, install the latest Windows update, then test again. If the failure started right after one specific update, uninstall that update and retest.
Will reinstalling OneDrive fix bad image errors?
Reinstalling helps when the OneDrive installation itself is damaged, but it will not fix every case. If the error returns after reinstall, run sfc /scannow, install the latest version of Visual C++ Redistributable, and re-register the concerned DLL file if the same DLL keeps appearing.
What dll files are commonly involved in OneDrive bad image errors
The error context often names wer.dll, SyncEngile.dll, or ucrtbase.dll. Those names usually point to the failure area better than the generic bad image label does. If a specific DLL repeats after reboot, use that clue to decide whether to re-register the DLL, repair Windows files, or reinstall supporting components.