Updated May 17, 2026
Are you having problems changing the location of your user files? Did you uninstall OneDrive, and now your personal folders are all screwed up? Here is how to manually change the default location of user files in Windows.

Being able to change the location of user files has to be one of the coolest features of Windows when it works. But there may be a time when you encounter an error while trying to move a folder. The most common error is 'Can't move the folder because there is a folder in the same location that can't be redirected. Access is denied'. This error occurs when folder redirection is enabled for OneDrive and often appears after uninstalling OneDrive.
Note: The following procedures require editing the registry. Incorrectly editing the registry can cause system instability and even prevent the system from booting. If you do not feel comfortable editing the registry, please contact a local computer technician for assistance.
Yes, truth be told, the special user folders are merely just registry entries and can be easily changed. But it is highly recommended to back up the registry first. So I want to show you how to back up the registry, change the location of your user files, and restore the registry if necessary.
How to open the Registry Editor in Windows
- Bring up the Run dialog box by either:
- Pressing the Windows logo key
+ R
- Right-click on the Windows logo
on the Start Menu or press the Windows logo key
+ X and then select Run
- In the Run dialog box that appears, type regedit and select OK. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
How to back up the registry
- With the Registry Editor open:
- Highlight Computer in the left-hand column to back up the complete registry.
- Highlight the key or value you want to back up.
- Left-click on the File pull-down menu and left-click on Export.
- Select the location and a descriptive file name for the backup file, then left-click on Save.
How to change the default user files location in the registry
- With the Registry Editor open:
- Navigate to the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

- In the right-hand column, right-click on the Name of the key you want to change and select Modify... from the context menu.
- Enter either the default settings for that folder from the table below or the path to the actual folder (C:\Example\Docs). Make sure the actual folder exists before changing the folder key.
- Log off or restart your computer for the registry change to take effect.
Default user shell folder settings
| Registry key name |
Folder |
Data (default value) |
| {374DE290-123F-4565-9164-39C4925E467B} |
Downloads |
%USERPROFILE%\Downloads |
| Desktop |
Desktop |
%USERPROFILE%\Desktop |
| Favorites |
Favorites |
%USERPROFILE%\Favorites |
| My Music |
Music |
%USERPROFILE%\Music |
| My Pictures |
Pictures |
%USERPROFILE%\Pictures |
| My Video |
Videos |
%USERPROFILE%\Videos |
| Personal |
Documents |
%USERPROFILE%\Documents |
How to restore the registry
- With the Registry Editor open:
- Left-click on the File pull-down menu and left-click on Import.
- Navigate to the location of the REG file you want to import, then left-click it.
- Left-click on the Open button. You should get a confirmation screen that says the file was successfully imported.