Fix OneDrive folder paths on Windows 10

Properties menu of the Pictures folder reveals that the path is in the OneDrive folder

Annoyingly, Windows 10 seems to want to store ALL of your files in OneDrive by default, and even if you uninstall OneDrive, there still exists a “OneDrive” folder in your user directory where the Quick Access links point to. You can try to fix this by editing the ’location’ property in the properties menu, but trying to do so gives you a prompt that leads to an error no matter what option you click.

‘The folder can’t be moved here’ error dialog.

Luckily I figured out how to fix the issue:

  1. Make sure OneDrive is not installed
  2. Open the Registry Editor and nagivate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
  3. Go to User Shell Folders and remove OneDrive\ from all of the paths here.
  4. Do the same for the Shell Folders section
  5. Move any files from the old OneDrive/Documents etc. to the real folders in your home directory if needed.
  6. Restart your computer