Cloud Storage
Matt Hansen  

How to mount your OneDrive as a local mapped drive

Reading Time: 3 minutes

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!



OneDrive is an online storage system by Microsoft that is included when you have an email account such as 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 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!

23 thoughts on “How to mount your OneDrive as a local mapped drive

  1. skier150

    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.

    1. mshansen01

      What version of the office suite do you have?

      1. skier150

        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.

      2. mshansen01

        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.

      3. skier150

        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.

  2. AARON

    Thank you very much, this post was very useful to me

  3. Rollerbagel

    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.

  4. skier150

    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.

  5. mshansen01

    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!

  6. Marco

    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.

  7. mshansen01

    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

  8. marcoacero

    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.

    1. mshansen01

      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. Thanks!

  9. Storm

    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.

  10. Scott Wilkinson

    This works well, but I have 1TB of OneDrive storage and the mounted disk is less than 500GB. Any idea why?

    1. mshansen01

      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.

    2. Steve

      The reported size is actually the C: ! (well it is for me anyway)

  11. Steve

    Has anyone got this working for more than one account? I can’t map a second drive to a second onedrive account.

    1. mshansen01

      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.

      1. Steve

        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

      2. Steve

        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.

Leave a Reply

%d bloggers like this: