The error occurs because the personal folders (Documents, Pictures, Music) are still mapped incorrectly in the registry, even though OneDrive was removed. Resetting the shell folder paths in the registry to their default values fixes the problem.
Follow these steps to restore the folders to their default locations:
- Back up the registry
- Modifying the registry incorrectly can cause serious problems. Before changing anything, back up the registry for restoration if needed. Instructions are in this article: How to back up and restore the registry in Windows.
- Open Registry Editor
- Right-click the Windows logo (Start) and select Run.
- Type
regedit.exeand press Enter. - If User Account Control appears, select Yes.
- Go to the User Shell Folders key
- In Registry Editor, browse to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
- In Registry Editor, browse to:
- Reset the affected folders to their default values
- In the right pane, locate these entries and set them exactly to the values shown:
- For Documents:
- Name:
Personal - Value:
%USERPROFILE%\Documents
- Name:
- For Pictures:
- Name:
My Pictures - Value:
%USERPROFILE%\Pictures
- Name:
- For Music:
- Name:
My Music - Value:
%USERPROFILE%\Music
- Name:
- If Downloads, Videos, Desktop, or Favorites are also misdirected to OneDrive, set them as follows:
- Downloads:
{374DE290-123F-4565-9164-39C4925E467B}→%USERPROFILE%\Downloads - Desktop:
Desktop→%USERPROFILE%\Desktop - Favorites:
Favorites→%USERPROFILE%\Favorites - Videos:
My Video→%USERPROFILE%\Videos
- Downloads:
- Make sure the values use
%USERPROFILE%and not a hard-coded OneDrive path.
- Apply the changes
- Restart the Explorer process or sign out and back in:
- Option A: Sign out of Windows and sign back in.
- Option B: Restart the PC.
- Restart the Explorer process or sign out and back in:
- Verify in File Explorer
- Open File Explorer.
- Right-click Documents, Pictures, and Music → Properties → Location.
- Each should now show the default path (for example,
C:\Users\yourname\Pictures). If needed, use the Restore Default button again; it should now work without the “Access is denied” error.
This resets the personal folders away from the old OneDrive location and removes the redirection that causes the “Can’t move the folder… Access is denied” message.
References: