Rename OneDrive¶
For some unknown reasons many cloud storage solutions will create folders with problematic nnames, like "My Drive", "OneDrive - BusinessName". The space and - will can cause problems with some programs, creating all kinds of bugs and incompatibilities, and there's no simple way of just renaming them.
With OneDrive it's possible to rename by editing some configuration files.
Process¶
- Login and connect your OneDrive if you haven't yet.
- Close the OneDrive instance you want to rename
- Goto
%LocalAppData%\Microsoft\OneDrive\settings
- Inside the account you want to rename
Business #
look for{GUID}.ini
and open in in a text editor
(the GUID will be a random alphanumeric string, should be the second file in the folder)
- In the text editor you'll see something similar to the following
libraryScope = 0 {alphanumeric string} 5 "MySite" "ODB" 2 "{SharePoint URL}" "{alphanumeric string}" {alphanumeric string} {alphanumeric string} {alphanumeric string} {numbers} "C:\Users\Lin\OneDrive - Lin.YCV"
- Change the folder name to what you desire such as
OneDrive2
and save the file - Goto your user folder
%USERPROFILE%
and rename the OneDriveFolder to what you've set in the .ini file
- Restart OneDrive
UPDATE: 2025/03/19¶
After doing this mod after a clean install of Windows 11, I noticed a weird behaviour:
After the rename, OneDrive pins a OneDrive - BusinessName
as a mounted folder above This PC
and when I click on it, it gives me an error saying the resource does not exist.
To solve this, a registry edit is required. Find the following key:
Computer\HKEY_CLASSES_ROOT\CLSID{04271989-C4D2-8B88-0DC3-8B76C2F44994}
Inside this key, there should be 3 values:
(Default)
String ofOneDrive - BusinessName
SortOrderIndex
System.IsPinnedToNameSpaceTree
set System.IsPinnedToNameSpaceTree
to 0
and the pinned folder above This PC
should disappear.
I'm not sure if the CLSID of {04271989-C4D2-8B88-0DC3-8B76C2F44994}
is constant, if you don't have this key, simply use the find function of registry editor, search for your value of OneDrive - BusinessName