How to Fix OneDrive Command Window Error 0x8004154 on Windows 11
Question details
The user needs to resolve a recurring command window error showing code 0x8004154 associated with Microsoft OneDrive.

- Product
- Microsoft OneDrive
- Device & OS
- Windows 11
- Scenario
- During system startup or immediately after attempting to uninstall the OneDrive application.
- Observed behavior
- A command window repeatedly pops up displaying the process termination code 2147746132 (0x8004154).
Ensure you are logged into Windows 11 with an administrator account, as administrative privileges are required to uninstall and reinstall system applications like OneDrive.
Perform a Clean Reinstallation of Microsoft OneDrive
Uninstalling the corrupted instance of OneDrive and installing the latest official release usually resolves process termination errors and stops the command window from appearing.
Error 0x8004154 occurs when background processes attempt to launch a corrupted, outdated, or partially removed OneDrive executable. Clearing out the old installation completely before putting a fresh copy on your system is the most effective fix.
Click the Start button on your Windows 11 taskbar, type 'Settings' in the search bar, and press Enter to launch the Settings application.
In the left-hand menu of the Settings window, click on 'Apps', then select 'Installed apps' from the list of options on the right side.
Scroll through the app list or use the search box to locate 'Microsoft OneDrive'. Click the three-dot menu icon next to it and choose 'Uninstall'. Follow the on-screen prompts and provide administrator confirmation if requested.
Once the uninstallation process is complete, click the Start button, select the Power icon, and choose 'Restart'. This ensures all lingering OneDrive background processes are fully terminated.
Open your web browser and visit the official Microsoft 365 OneDrive download page. Download the latest version of the installer, run the executable file, and follow the setup wizard to reinstall the application.

Looking for a Reliable Office Suite? Try WPS Office
While troubleshooting OneDrive sync and system errors, you might be looking for a lightweight, hassle-free productivity suite. WPS Office is a powerful, free alternative to Microsoft Office that offers seamless document editing, high compatibility, and built-in cloud storage options.

Frequently Asked Questions
What does process termination code 2147746132 mean?
This code is the decimal equivalent of the hex error 0x8004154. It indicates a fatal error where the OneDrive background process crashed because of corrupted application files or an incomplete uninstallation.
Will uninstalling OneDrive delete my personal files?
No, uninstalling the OneDrive application from your Windows 11 settings will not delete any files you have stored in the cloud or in your local OneDrive folder. They will remain safe and will sync again once you sign back into a newly installed OneDrive app.
Why does the command window keep appearing during system startup?
OneDrive is typically configured to run automatically when Windows boots up. If the application is corrupted, Windows will repeatedly try to launch the broken executable, which briefly opens a command window before the process terminates and displays the error.
Can Windows 11 updates cause this OneDrive error?
Yes, occasionally system updates or participating in the Windows Insider Program (using preview builds) can introduce compatibility bugs with OneDrive services, leading to unexpected crashes and error 0x8004154.




