Bad image 0x000012f error preventing using one drive and causing errors with other program launchers. How might I fix this plesae

Archie Gault 0 Reputation points
2026-11-19T12:52:29.15+00:00

Hi! When I turned on the machine I got the bad image 0x000012f error. This appears to have caused issues with other programmes (IE- apps with launchers unable to locate the relevant exe even when I select the correct folder to point them to it). This error comes up whenever I turn the machine on and takes spamming the x to get it to go away. I think I know what caused this as the machine was shut down incorrectly when last used (turned off at PSU) which I'd always avoided before. Could be unconnected but feels like a big coincidence if so.

I have tried-

Reinstalling OneDrive but it won't allow me to do so, citing that a newer version is already installed an I need to uninstall it.

Reset OneDrive using command prompts but get the same bad image error

Reinstalling Windows - no change

In all honesty I'm not too worried about resolving OneDrive itself, but worried it might cause similar issues with apps down the line, so would like it either fixed or removed completely please.

Thanks for your help!

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

1 answer

Sort by: Oldest
  1. Ramesh Srinivasan 90,310 Reputation points Independent Advisor
    2026-11-19T14:04:02.1166667+00:00

    Hi Archie,

    Error 0x000012f occurs if an .exe or a .dll file is corrupt. Please post a screenshot of the error so I can determine which program is causing it at startup.


    Also, open Task Manager (Ctrl+Shift+Esc) and select the Startup tab.

    Disable all Startup entries, and close Task Manager.


    Regarding OneDrive, let's check if the OneDrive setup file exists on the hard drive. Open Command Prompt and run this command:

    dir "C:\Program Files\Microsoft OneDrive\OneDriveSetup.exe" /s
    

    Post the output here.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.