Hacker News new | ask | show | jobs
by Marvy_a 728 days ago
I had this happen about a year ago. OneDrive changed the default path for the Documents folder to the one you mentioned above, but I only noticed it when I wasn't able to find some files in the Documents folder. It turned out that some files were being saved to the default path C:\Users\username\Documents. So I tried to move the Documents folder from the directory made by OneDrive back to the default one, but it gave me an error. Then I tried to fix it in the registry, but there were quite a lot of different entries for the default path, and I wasn't able to figure out which one I should change or remove. In the end, I had to reinstall Windows. Now each time I install Windows on any PC, the first thing I do is remove OneDrive.

Unfortunately, this problem somehow happened again on my current Windows installation. Maybe I forgot to remove OneDrive this time, or it was automatically reinstalled during some update.

1 comments

This problem CONSTANTLY haunts me and my customers. (1) Uninstall OneDrive (2) Reboot (3) Apply policy to block OneDrive reinstallation (linked below) (4) Attempt to change your folders with Explorer: right-click the library folder, then go to properties, Location, and choose Restore Default. If this fails, use Move. (5) Manually move any remaining files from c:\users\username\OneDrive (6) Open registry, manually edit the keys shown in the link (7) Delete leftover OneDrive folder (8) Reboot for completion!

[3] https://techcommunity.microsoft.com/t5/onedrive/how-to-disab... [6] https://answers.microsoft.com/en-us/windows/forum/all/how-do...