How to mount your OneDrive as a local mapped drive
Reading Time: 3 minutesEDIT: If you liked this post, I’ve updated my process a little bit and written a script to automate a good chunk of this! Go check out Part 2 of this blog! http://hansencloud.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/
OneDrive is an online storage system by Microsoft that is included when you have an email account such as @live.com @hotmail.com etc. I use it fairly often and I was curious if I could map it locally, turns out that I can.
First of all, you need to go to https://onedrive.com and use your Windows Live account (the same you use to access Hotmail, Messenger, Windows Live Mail or MSN) to log in and create the folders you want to use by using the New menu. You can create private and shared folders and customize the access for every one of them.
After your have created your folders and customized it to your liking, you will need to link your computer to your online ID so it can access them without asking for credentials every time.
Click on the Start Menu button and select Control Panel.
Select User Accounts and Family Safety.
Select User Accounts
Select Link Online IDs, on the left side of the window.
Click on Link Online ID.
If you haven´t installed the Windows Live ID provider, you will be taken to a website to download it. If not, click the “Add an online ID provider” link in the above photo and it will take you there.
Now you will be taken back to the Online ID providers and click on Link Online ID to sign in.
Now, to get the address where to map your OneDrive´s folders, you can open Excel, Word, PowerPoint or OneNote click on File and then on Save & Send. Then click “Save to Web” and it will populate the OneDrive folders from the OnlineID you just linked, select that folder and click “Save As”.
Double click on the folder you want to map and copy the folder´s address.
Now that you have that link, go back to “Computer” and click “Map Network Drive”.
Choose a drive letter, and paste that URL in there that was copied a few steps back.
There ya go! You’ve now got your OneDrive linked locally!
EDIT: If you liked this post, I’ve updated my process a little bit and written a script to automate a good chunk of this! Go check out Part 2 of this blog! http://hansencloud.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/
July 24, 2014 at 12:57 pm
Great idea, but it does not work in my case. To start with, there is no “file” menu on any of my office products, so that pretty much kills the process.
July 30, 2014 at 3:33 pm
What version of the office suite do you have?
July 30, 2014 at 4:00 pm
I am using 2007… I remember there being a File menu command in the older versions, but unfortunately not this one. Everything up to that point worked as was stated.
July 30, 2014 at 4:29 pm
Here is an alternative way to generate your link. Take everything but the greyed out portion of this link here:
Then go to onedrive, create a file, right click and share. When it generates a link for you grab this portion here:
You then have your full link to map, that should work — let me know.
July 30, 2014 at 10:35 pm
Thanks for trying, but that did not work either. The photo below does seems like it is missing some info, so I added another backslash before I added the number that I copied… but that did not make it work regardless.
July 30, 2014 at 3:32 pm
Thank you very much, this post was very useful to me
September 11, 2014 at 3:26 pm
Thanks kindly. Been hacking away at this off and on for some time. This opens up LOTS of possibilities for me! Worked like a charm.
September 12, 2014 at 4:56 pm
I updated from 2007 to 2013, and there is still no place to do this as described. There is a save, but nowhere is there a save to web. Giving up and moving on.
October 3, 2014 at 9:23 pm
This will now suite you. http://thetechl33t.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/
October 3, 2014 at 9:20 pm
[…] http://thetechl33t.com/2014/03/14/how-to-mount-your-onedrive-as-a-local-mapped-drive/ […]
October 3, 2014 at 9:23 pm
If you liked this post, I’ve updated my process a little bit and written a script to automate a good chunk of this! Go check out Part 2 of this blog! http://thetechl33t.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/
October 31, 2014 at 8:00 am
Hey man, thanks for the tutorial, unfortunately it hasn’t workded for me, not this or your previous method without the script. I’m running Windows 8.1 and my OneDrive credentials are the same I’m using to login to Windows, I think this might have something to do with it. When I try to map the drive manually, it just keeps prompting me to input my email/password, no errors or anything, just keeps asking for them. With the PS script, the first time it ran it said something about the folder permissions, that I chose select some other folder (which I can’t using the script?) Then subsequently every time I ran it again, it just went through, close itself, no error but no drive either. Any ideas? Thanks.
October 31, 2014 at 9:24 am
Marco, I don’t currently run 8.1 but I threw up a VM to test out your problem and did see it. Two things you want to make sure you do.
1) Run “set-executionpolicy unrestricted” in powershell which allows you to run scripts that are unsigned or “untrusted” (you can read the code if you don’t trust it).
After this (I honestly don’t know why) — but log off / logon again.
Make sure you download the script from part 2 (
2) Right-click powershell and click “Run as Administrator” then navigate to the host directory (Probably “cd C:\Users\YourUserName\Downloads” if you’ve got the defaults in your web browser), run “dir” to see that you’re in the right directory and and execute the script using “.\OneDriveMap.ps1”.
After setting the execution policy, logging off/on, and running it as an Administrator it worked for me 3/3 times even post-reboot. If it still doesn’t work for you let me know and I’ll do a screenshot walk through.
Hope this helps!
– Matt
November 11, 2014 at 9:58 am
Hey Matt, thanks so much for taking the time: I followed the steps you explained and in power-shell I’m getting this error:
System error 1244 has occurred.
The operation being requested was not performed because the user has not been authenticated.
Please allow up to 30 second for this command to complete
Any thoughts?
Thanks a lot.
Marco
February 11, 2015 at 4:42 pm
Hey MarcoAcero! Sorry for the late response. System Error 1244 in that context is simply an authentication error. I find it useful sometimes with complex passwords in a situation like this to type them out in notepad then copy and paste. Also make sure that you’re fully qualifying your username IE. joeblow@live.com. Thanks!
May 22, 2015 at 3:31 pm
Here’s an interesting question, and if you can help I would be eternally grateful. I have a client using OneDrive personal, and we’re trying to map their OneDrive as a local network drive. That works fine, but the problem is that the 1TB storage we have for the users is greater than the local storage, and the mapped drive is only reading the same size as the local disk. When the users try to copy their files to the OneDrive they receive a message that the disk is full. We know that the disk is not full, as the total amount of data is nowhere near 1TB. Any ideas? Microsoft is no help whatsoever.
Thanks
September 8, 2015 at 11:06 am
This works well, but I have 1TB of OneDrive storage and the mounted disk is less than 500GB. Any idea why?
November 4, 2015 at 8:49 am
I’m going to guess there is some sort of thin-provisioning and automated orchestration for expansion that happens once the used storage reaches a certain threshold by Microsoft.
November 4, 2015 at 8:50 am
The reported size is actually the C: ! (well it is for me anyway)
November 4, 2015 at 8:47 am
Has anyone got this working for more than one account? I can’t map a second drive to a second onedrive account.
November 4, 2015 at 9:02 am
Steve, it won’t work because the script is hard-coded to use the O: drive letter. If you want to use another account, you will have to edit the script on lines 14, and 17 using a text editor to another drive letter that’s not in use. After that run it again, and all should work.
November 6, 2015 at 7:22 am
No still didnt work for me. Give it a try – make a second drive letter point at a different CID with different credentials, it wont let me
November 6, 2015 at 7:36 am
I get this error:
System error 1219 has occurred.
Multiple connections to a server or shared resource by the same user, using more
than one user name, are not allowed. Disconnect all previous connections to the
server or shared resource and try again.