How to mount your OneDrive as a local mapped drive

Posted on Updated on

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! https://thetechl33t.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.

onedrive_0

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.

cnt_pannel

Select User Accounts and Family Safety.

useracct_2

Select User Accounts

useracct_3

Select Link Online IDs, on the left side of the window.

link_online_4

Click on Link Online ID.

link_online_5

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.

download_signon_6

Now you will be taken back to the Online ID providers and click on Link Online ID to sign in.

liveID_7

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”.

doc_save_8

Double click on the folder you want to map and copy the folder´s address.

url_9

Now that you have that link, go back to “Computer” and click “Map Network Drive”.

computer_10

map_11

Choose a drive letter, and paste that URL in there that was copied a few steps back.

map_12

There ya go! You’ve now got your OneDrive linked locally!

drive_13

 

 

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! https://thetechl33t.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/

Advertisements

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

    skier150 said:
    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.

      mshansen01 responded:
      July 30, 2014 at 3:33 pm

      What version of the office suite do you have?

        skier150 said:
        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.

        mshansen01 responded:
        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: https://thetechl33t.files.wordpress.com/2014/03/map_12.png?w=705 Then go to onedrive, create a file, right click and share. When it generates a link for you grab this portion here: https://thetechl33t.files.wordpress.com/2014/07/alternitive_link.jpg?w=705 You then have your full link to map, that should work — let me know.

        skier150 said:
        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.

    AARON said:
    July 30, 2014 at 3:32 pm

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

    Rollerbagel said:
    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.

    skier150 said:
    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.

    mshansen01 responded:
    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! https://thetechl33t.com/2014/10/03/how-to-mount-your-onedrive-as-a-local-mapped-drive-part-2/

    Marco said:
    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.

    mshansen01 responded:
    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

    marcoacero said:
    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

      mshansen01 responded:
      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!

    Storm said:
    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

    Scott Wilkinson said:
    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?

      mshansen01 responded:
      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.

      Steve said:
      November 4, 2015 at 8:50 am

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

    Steve said:
    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.

      mshansen01 responded:
      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.

        Steve said:
        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

        Steve said:
        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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s