

Navigate to the parent folder of your current OneDrive folder, mine was c:\Users\JonGallant\.Mklink /J OneDriveMS "OneDrive - Microsoft" Mklink /J desired_name "OneDrive - company I personally love this solution because I don’t have to mess with the registry and OneDrive just works as is. So, while this post is titled “rename or remove spaces” we aren’t going to actually do that - I just gave it that title so you could easily find it.Īll you have to do is create a junction link from the name you want to the name of the OneDrive folder via the following mklink command. I’m blogging it because I’m hoping the SEO of this page helps you out. I googled my way to a better solution, and giving credit, I found a good solution here. My first attempt at this took me down the path of editing the registry, basically I found all occurrences of OneDrive - Microsoft and replaced it with OneDriveMS - but that’s a lot of work to do on every machine and error prone. Which causes endless issues as a dev, such as running tox or long file name issues.

When you have two accounts on the same machine, OneDrive automatically creates a folder for the second account in this format OneDrive. I have two OneDrive accounts, one for personal, one for work.
