19

After installing Office 365, I have a new special folder in Explorer called "OneDrive - Company Name LLC".

I found a registry key at Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace whose value matches that text (and it's the only match in the registry), and I confirmed previously that deleting it will remove the entry from Explorer, so I assumed I could rename it here. However, it does not seem to work. I changed the value and even rebooted, but the display value did not change.

How can I rename my personal OneDrive folder?


Background/reasoning:

I have synced a Sharepoint document library as a public share of sorts. It shows up as "Company Name LLC". My personal OneDrive shows up as "OneDrive - Company Name LLC". This has already led to confusion with some employees. They thought they were putting files in a public space but were not. Ideally it would be named something like "OneDrive - Personal Folders".

1
  • 1
    The name "OneDrive - Personal" is generally used for personal OneDrive folder with Microsoft account (hotmail.com, Outlook.com etc.). If your "personal" OneDrive here is still meaning for OneDrive for Business folder, it cannot be renamed to OneDrive - Personal folder. It uses Organization name by default.
    – WinniL
    May 21 '18 at 9:34
9

This is a hacky, but the only working solution:

  1. First, close OneDrive: Click the icon in the taskbar, select More... then Close OneDrive
  2. Next open Registry Explorer: Press Win + R, then type regedit and hit enter.
  3. Press Ctrl + F to search for all occurrences of OneDrive - <Company> and replace these with the new desired name.
  4. For all files in C:\Users\<user>\AppData\Local\Microsoft\OneDrive (i.e., enter %AppData%\..\Local\Microsoft\OneDrive in the address bar) and subfolders, replace all occurrences of OneDrive - <Company> with the new desired name.
  5. Rename your original OneDrive - <Company> folder to the new desired name.
  6. Reopen OneDrive.
  7. OneDrive might realize that the folder name has been change and will ask to set up the OneDrive folder again. Do not do this or else your work will be reverted!

Consider voting for the Rename-OneDrive-Root-Folder feature on UserVoice:

3
  • That was almost enough. Another thing is to change the path in the libraryScope parameter in C:\Users\oze\AppData\Local\Microsoft\OneDrive\settings\Business1\<ID>.ini where <ID> is the ID
    – Oz Edri
    Jun 11 '20 at 16:22
  • 1
    I followed all the steps here and replaced all occurrences in the registry (Which included the ones in HKCU and a few in HKLM as well) and also in the config files. Then, I restarted Windows Explorer before reopening the OneDrive app. The Explorer did show the new name and did open the folder in the new location. However when I opened the OneDrive app, it changed back all the occurrences of my new name back to the old one (it didn't ask me to set up anything again, did everything silently). I cannot find my changed name in the registry anymore. I'm using OneDrive version 20.084.0426.0007. Jul 6 '20 at 13:26
  • However this did help me change the name of my destination folder for OneDrive, thanks! Upvoted! It should be sufficient to change all occurrences of the original path C:\Users\USERNAME\OneDrive - Business name for this purpose, there's no need to change anything else. Jul 6 '20 at 13:27
5

There are some good answers here, and here is a thorough one that includes the whole process and procedure in addition to what is missing.


Process

  • Close OneDrive (step 1 below)
  • Rename OneDrive folder (step 2 below)
  • (optional) Move the OneDrive folder to the desired location (step 3 below)
  • Modify the relevant registry keys (steps 4-5 below)
  • Modify the configuration file (steps 6-8 below)


Procedure

  1. Close OneDrive.
  2. Rename the OneDrive folder.
  3. (optional) Move the OneDrive folder to the desired location.
  4. Open the registry (start menu >> search "regedit")
  5. Modify the OneDrive folder or path in the following locations: (or follow @xoxox advice and search for "OneDrive - (company name)"

    In HKEY_CURRENT_USER (HKCU) (4 locations)

    HKCU\Software\Microsoft\OneDrive\Accounts\Business1\UserFolder
    HKCU\Software\Microsoft\OneDrive\Accounts\Business1\ScopeIdToMountPointPathCache\(ID)
    HKCU\Software\Microsoft\OneDrive\Accounts\Business1\Tenants\(name)\(path)
    HKCU\Software\SyncEngines\Providers\OneDrive\(ID)\MountPoint

    In HKEY_LOCAL_MACHINE (HKLM) (2 locations)

    HKLM\SOFTWARE\Microsoft\Security Center\Provider\CBP\(ID)\NAMESPACE
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager\OneDrive!(ID)\UserSyncRoots\(SID)

  6. Open the following location: %UserProfile%\AppData\Local\Microsoft\OneDrive\settings\Business1

  7. Locate the (ID).ini file (usually it's the 2nd file) and edit it (right click >> edit)
  8. Locate the OneDrive path in the first line (in the value of the libraryScope parameter) and modify it to be as the new path. Then save the file.
  9. Open OneDrive.


Notes

  • In step 4 above, we're modifying either the OneDrive folder name or its whole path, depends on the case - where you see only OneDrive - (company name) - it's only the OneDrive name, and where you see the whole path (C:\Users\(username)\OneDrive) - it's the whole path.
  • In step 4 above, some parameters are quoted (e.g. (name), (ID), (path)) - that means that these parameters are interchangeable, and there should be some value that is probably unique to your case.


Reference
Changing your onedrive name in file explorer navigation
How can I change default name of OneDrive for Business folder?


OneDrive UserVote (try to vote and maybe Microsoft will consider to change it in the future)
Allow OneDrive for Business folder to be renamed
Allow renaming root folder (OneDrive folder)
Make it possible to change the tenant name in Office365

2
  • 1
    This answer is great for changing the path to the folder, but unfortunately not the company name that appears in the Explorer sidebar (OneDrive resets it to the original one - also mentioned in my comment here.) Also, in addition to the above mentioned keys, it is good practice to also change the value of the OneDriveCommercial environment variable to point to the new path, so that apps and scripts that depend on it, are not broken: HKEY_CURRENT_USER\Environment\OneDriveCommercial Jul 6 '20 at 13:54
  • 1
    This answer works! Thank you! I did have to ensure that BITS (Background Intelligent Transfer Service) is not running before I can rename the folder. And to be really careful, instead of just re-opening OneDrive, I restarted my computer.
    – pepoluan
    Aug 5 '20 at 4:12
3

You can change this in the registry through the following:

Find the folder name of the OneDrive synced folder in

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Now navigate to HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} and change the (Default) string entry with the name of your choice.

This change would immediately be visible.

3
  • Doesn't work on my side Feb 10 '20 at 3:36
  • 5
    This worked fro me, but the answer is not completely clear. You need to navigate to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace** to find the key(s) for your folders. Then you need to navigate to **HKCR\CLSID\{key-values} and then change the default text here.
    – JoeFletch
    Mar 8 '20 at 21:25
  • It's not working. Just to be on the same page, I read Bashan's, JW0914's, and JoeFletch comments. Seems like JoeFletch is closer, but it still didn't work and the name remained the same as it was regardless the rename in the registry keys
    – Oz Edri
    Jun 11 '20 at 15:23
2

How about this:

mklink /J your_desired_name "OneDrive - Company Name LLC"
4
  • Exactly what is the expected outcome of this? It created a junction, but there is no new entry in Explorer.
    – JOATMON
    Dec 23 '19 at 15:06
  • You may need to open CMD as administrator. And check if the link was created in the path where the CMD was tuned.
    – uriel
    Dec 24 '19 at 18:36
  • Perhaps a workaround, but does not answer the question
    – ak112358
    Apr 27 '20 at 15:26
  • Looks like it works blog.jongallant.com/2020/01/…
    – Tung
    May 29 '20 at 16:46
0

If you are a "global admin" of the Office installation which gives you the business OneDrive, then changing the OneDrive root folder name is easy without changing the registry or adding filesystem links, because "Currently, updating the organization name does not update it for configured clients." (https://docs.microsoft.com/en-US/microsoft-365/admin/manage/change-address-contact-and-more).

This means, in summary, that you can change the organization name to anything you like, call it string S, trigger each OneDrive installation to use the new name, then change the organization name back to what it should be for billing, etc.

This works for me as of day of posting on my Windows 10 Pro machines, which are not associated with a Windows domain.

  1. Log into Office admin center (admin.microsoft.com). Go to Settings > Org settings page > Organization profile tab > Organization information. Change the "Name" to the string you want to use, and save the changes. For new OneDrive installations, your root OneDrive folder name is required to be "OneDrive - S". Existing installations will NOT be changed.
  2. Steps 2-4 must be done for each OneDrive root folder whose name should be changed (i.e., repeat for each user/machine). In OneDrive settings, unlink the PC. OneDrive will probably pop up a new sign-in window, which you can leave open.
  3. In Explorer, change the root OneDrive folder name to "OneDrive - S".
  4. Return to the OneDrive sign-in window (or launch OneDrive again; or open another running OneDrive such as a personal OneDrive and "add account" in settings). Sign in with the business credentials and proceed to the screen which lists and confirms the location of the OneDrive. The default OneDrive folder root name will be your new name. (If you've moved the location of the OneDrive root folder, you may need to navigate there. Wherever it is located, the root folder name must be "OneDrive - S".) On the next screen, you will get warning that the selected location already exists and has files in it, and you get the choice whether to re-use the folder or create a new one. Choose to re-use. OneDrive will go comparing all the contents looking for changes. Assuming the folder was synced before you started and no changes in the cloud while you worked, OneDrive will simply count down from the total number of files to zero, making no changes to your local folder.
  5. Go back to the online admin center and change the organization name back to whatever is right there. The documentation link above lists where that name is used across the Office environment.
-1

How can I rename my personal OneDrive folder?

The Company Name is pulled of from your Office 365 account company you signed up for. If you wanted it to be named COMPANY then change your company name in Office 365.

See Change your organization's address, technical contact, and more

Source [SOLVED] How can I change default name of OneDrive for Business folder? - Spiceworks

1
  • Well that sucks. See my update for why.
    – JOATMON
    May 16 '18 at 20:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.