
A reader sent in two photos of a problem that had survived a Windows reinstall, a DISM repair and an SFC scan. A box titled “ImgBurn.exe – Bad Image” kept popping up, and it said this:
C:\Program Files\Microsoft OneDrive\26.183.0920.0005\i386\FileSyncShell.dll
is either not designed to run on Windows or it contains an error.
Error status 0xc000012f.
The same box appeared at startup with OneDrive.exe in the title. The PC was a Ryzen 5 5600 with 16 GB of RAM on Windows 11 Home 25H2, build 26200.9711.
The broken file belongs to OneDrive, so the fix is to remove OneDrive completely, delete its folder and install it again. The commands are below, after a short look at why the usual repairs failed.
The Path In The Error Tells You Which Program Is Broken
Read the path before anything else. The file is inside C:\Program Files\Microsoft OneDrive, and so it was put there by OneDrive’s own installer. The code 0xc000012f stands for STATUS_INVALID_IMAGE_NOT_MZ, meaning the file does not have the correct format. In plain words, Windows opened the DLL and what it found inside was not a program file. The file is usually empty or half-written after an update that went wrong.
ImgBurn is not at fault. FileSyncShell.dll is the piece of OneDrive that plugs into Explorer and into every Open and Save window. ImgBurn is a 32-bit program, and when it opens a file window Windows loads the 32-bit copy of that DLL from the i386 folder. Any other 32-bit program will trip over the same file, and that explains why only some programs show the box.
SFC And DISM Could Not Repair A File They Do Not Own
SFC and DISM compare Windows system files against the Windows component store. OneDrive in Program Files is a separate app with its own updater, so both tools pass over it and report nothing wrong.
Many guides for this error code tell you to install the Visual C++ Redistributable or to re-register every DLL with regsvr32. Neither will help here, because a damaged file cannot be registered back to health.
Check The File Before You Remove Anything
Open PowerShell as administrator and run these two lines.
Get-ChildItem "C:\Program Files\Microsoft OneDrive\*\i386\FileSyncShell.dll" | Select-Object FullName, Length
Get-ChildItem "C:\Program Files\Microsoft OneDrive\*\i386\FileSyncShell.dll" | Get-AuthenticodeSignature | Select-Object Status, Path
A healthy copy has a length of well over a megabyte and a status of Valid. If you see a length of 0, or a status such as HashMismatch or NotSigned, the file is damaged and you can go straight to the fix.
Remove OneDrive, Delete Its Folder And Install It Again
Your files in the OneDrive folder stay on the disk and in the cloud. Only the app is removed.
Open Command Prompt as administrator and stop OneDrive first.
taskkill /f /im OneDrive.exe
Uninstall it.
winget uninstall Microsoft.OneDrive
If winget cannot find it, use OneDrive’s own setup file. Change the version number to the one in your error box.
"C:\Program Files\Microsoft OneDrive\26.183.0920.0005\OneDriveSetup.exe" /uninstall /allusers
Restart the PC so that Explorer lets go of the old DLLs. Then open Command Prompt as administrator again and delete what is left.
rd /s /q "C:\Program Files\Microsoft OneDrive"
This step matters most. The advice given for the 64-bit version of this error is the same: uninstall, then delete the folder before reinstalling. If the folder stays, the installer can leave the bad file where it is.
Install a clean copy.
winget install Microsoft.OneDrive
Sign in, open ImgBurn and try a file window. The box should be gone. Run the two PowerShell lines again if you want proof, but note that a fresh install may sit under %LOCALAPPDATA%\Microsoft\OneDrive, so change the path to match.
If you never use OneDrive, stop after the rd command and leave it uninstalled.
Test The Disk If The Same File Breaks Again
A file that goes bad once is bad luck. A file that goes bad again after a Windows reinstall deserves a closer look at the hardware. Start with the drive.
Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus
chkdsk C: /scan
Anything other than Healthy, or errors from chkdsk, means the drive is damaging files as it writes them. If the drive passes, press Win + R, type mdsched.exe and let Windows test the memory on the next restart.