IT tips

How to change the OneDrive folder path

OneDrive can adjust the folder path and move it to another location, but OneDrive always forces the folder name OneDrive. If you want to rename the OneDrive folder and, for example, use the folder D:\Data for OneDrive, you will encounter difficulties because OneDrive then wants to force D:\Data\OneDrive.

Do you have difficulties changing the folder name of OneDrive? Don't want the folder to be called OneDrive?

You are not alone! Many users not only want to move their OneDrive folder to a different location, but also freely change the default folder name "OneDrive".

In this article, we will show you how you can do this in a few simple steps.

Step-by-step instructions

To freely change the OneDrive folder path, for example to D:\Data, you need to make a few settings in the Windows registry and in the application data.

Here are the steps you should follow:

  1. Exit OneDrive.

  2. Change the OneDrive path in the Windows registry: Open the registry editor and change the path in the following locations (if the keys exist)

    • HKEY_CURRENT_USER\Software\Microsoft\OneDrive\UserFolder
    • HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Personal\UserFolder
    • HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1\UserFolder
  3. Update the INI file: Go to Explorer and enter the following local path in the line for the path:

    • %localappdata%\Microsoft\OneDrive\settings\

    Now change to either the Business1 folder for your business OneDrive or the Personal folder for your personal OneDrive.

  4. Search here for an INI file that looks similar to the following:

    • e7d635caba2ab846.ini

    Open this INI file in a text editor and search for the folder path currently used by OneDrive. Change the path to your desired folder path and folder name.

  5. Check the cache path: After you have made the changes, make sure that the following keys are also updated in the registry:

    • HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Personal\ScopeIdToMountPointPathCache
    • HKEY_CURRENT_USER\Software\Microsoft\OneDrive\Accounts\Business1\ScopeIdToMountPointPathCache

These steps should help you to successfully rename the OneDrive folder. Remember to make all changes carefully to ensure that your OneDrive continues to work smoothly.

About the author
Founder and CEO of Langmeier Software
I don't want to complicate anything. I don't want to develop the ultimate business software. I don't want to be listed in a top technology list. Because that's not what business applications are about. It's about making sure your data is seamlessly protected. And it's about making sure everything runs smoothly while you retain full control and can focus on growing your business. Simplicity and reliability are my guiding principles and inspire me every day.
 
Related articles