Duplicate OneDrive folders in Explorer on Windows 10

OneDrive is regarded as one of the leading cloud storage services. It is most used by the enterprise bundled along with the Office 365 subscription -although, there are many users who use it for their personal accounts as well. One issue that so,e users are reporting is that they see duplicate folder icons of OneDrive in File Explorer. This turns out to be a nasty bug and can often confuse the user with its existence.

2 onedrive icons

Duplicate OneDrive folder icons in File Explorer

The following reliable workarounds and fixes might help you get your computer in a way that you intend to:

  1. Reset OneDrive.
  2. Relink the OneDrive account.
  3. Use the Registry Editor.
  4. Switch to a local account and switch back.

Before you begin, backup your local unsynced OneDrive data to a separate location.

1] Reset OneDrive

In order to Reset OneDrive on Windows 10 you can follow this:

Open the Run box and type the following and hit Enter:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

Check if that fixes your issues.

2] Relink the OneDrive account

Right-click on the OneDrive icon in your system tray and select Settings from the context menu that you get.

It will open a new mini-window where you need to navigate to a tab called Account.

Select the option that says Unlink this PC.

It will open a pop-up window that will confirm if you really want to Unlink your OneDrive account on the computer. Select Unlink account.

You can now run OneDrive again and relink your account to check if that makes any difference.

3] Use the Registry Editor

In the Start Menu, search for “Registry Editor.”

Select Registry Editor Desktop App and open by selecting “Open as Administrator.”

Once Registry Editor opens, navigate to the following key-

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace

Look out for the folders having folders named OneDrive and delete those OneDrive data DWORDs or folders.

Alternatively, you can check this modification inside the Registry Editor.

Once Registry Editor opens, navigate to the following key-

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace

Look out for the folders having folders named OneDrive and copy the names of folders that contain the OneDrive folder.

Now navigate to the following location inside of the Registry Editor-

Computer\HKEY_CLASSES_ROOT\CLSID

Look for the folder name that you just copied.

Inside that folder, there will be a DWORD named System.IsPinnedToNameSpaceTree and set its value data to be 0.

Reboot your computer for the changes to take effect.

4] Switch to a local account and switch back

Press the WINKEY + I button combination to open the Windows 10 Settings App.

Navigate to the following path: Accounts > Your info.

Scroll down to select the option of Sign in with a local account instead.

Follow the onscreen instructions to get a local account and enter the desired username and a password.

Once that is done, navigate to the same location inside of the Settings app and this time select the option that says- Sign in with a Microsoft Account instead.

Follow the onscreen instructions again to get signed in to your Microsoft Account with your Email address and Password.

Reboot your computer and check if your issues still exist.

So is only one OneDrive icon appearing now?

Posted by on , in Category Windows with Tags
Ayush has been a Windows enthusiast since the day he got his first PC with Windows 98SE. He is an active Windows Insider since Day 1 and is now a Windows Insider MVP. He has been testing pre-release services on his Windows 10 PC, Lumia, and Android devices.