I set up a new laptop a few days ago, Huawei MateBook D14. So much bloat! so much!
MS office 15 and 16, bunch of the usual bs windows apps and yes, onedrive.
Even after uninstalling though, I noticed a rogue onedrive folder hanging around like a bad smell in my user folder. This pissed me off, so I deleted it...
Little did I know it would delete my desktop icons I'd just painstakingly setup though.
I had to reboot to even get access to the desktop again, it would error out if I for example, did Windows+E, Backspace as usual. Anyway I noticed that folder coming back so I was like, nah. Not having it.
Had to find a way to solve it. Eradicate the bloody thing from my system, so I did.
If you're going through the same thing, here's a zip file to fix it: 3.onj.me/programs/OnedriveFixe…
Here's what the readme says about it:
Onedrive Fixes
This script removes OneDrive from a Windows user profile and moves the standard folders back where they normally belong.
It is intended for cases where OneDrive has redirected Desktop, Documents, or Pictures to a path such as:
C:\Users\YourName\OneDrive\Desktop
What It Does
• Backs up the affected registry keys to this folder.
• Moves Desktop, Documents, and Pictures out of OneDrive and back to the normal user folders.
• Updates the Windows known-folder registry paths.
• Removes OneDrive startup entries.
• Disables OneDrive sync policy.
• Hides OneDrive from Explorer where possible.
• Removes OneDrive scheduled tasks where possible.
• Runs the normal OneDrive uninstallers.
• Deletes the leftover OneDrive folder after moving the known folders back.
• Restarts Explorer so the folder changes take effect.
How To Use
Right-click this file and choose Run as administrator:
Onedrive Fixes.cmd
The script writes .reg backups and a .log file beside itself in this folder.
After it finishes, reboot the computer and confirm Desktop, Documents, and Pictures are in the normal user profile folders.
Peter Vágner
in reply to ondrosik • •