How to mount your OneDrive as a local mapped drive: Part 2

Posted on Updated on

A while back I wrote a blog post about how to map your OneDrive as a local drive (network drive) and it has been hugely popular (contrary to anything I could have imagined)

https://thetechl33t.com/2014/03/14/how-to-mount-your-onedrive-as-a-local-mapped-drive/

 

 

I’ve even seen it referred to in the Microsoft Community Forums. So I decided to share something that I played with, starting to write a tool to automate this otherwise lengthy process. Granted at this point it’s still at something of a Version 0.1, but I’ll share it anyways.

 

There are three things you need to have to make this tool do it’s magic.

  1. Your Microsoft CID
  2. Your Email
  3. Your Password

As long as you have those things the tool will do the rest!

 

The only thing here that you need to do is have your Microsoft CID, which isn’t too hard to do. Let’s help you grab that real quick!

First

 

  • Copy the CID in the top URL bar

Second

 

 

 

 

 

Once you have this ID copied, you’re all set! You can download the poweshell script here. Right click, and run with powershell! *Note* Accessing OneDrive this way is NOT supported and may act sluggish at times.

 

In some free time I’ll be working on using the Windows Live APIs to automatically pull the CID in the next version of this application. I hope I’ve made your day a little bit easier!

 

Advertisements

9 thoughts on “How to mount your OneDrive as a local mapped drive: Part 2

    […] 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/ […]

    skier150 said:
    October 3, 2014 at 9:49 pm

    Thanks for the update! However when I click on the link to download the app, Onedrive states the that file is no longer there.

    Hal said:
    November 5, 2014 at 5:55 pm

    on windows server 2012, script runs and i fill out info it asks but at the end nothing happens….on win 2008, script doesnt even run

      mshansen01 responded:
      February 11, 2015 at 4:40 pm

      Hey Hal! Sorry for the late response. On the 2012 I would recommend going into your event viewer under “Windows Logs/System” and see what’s going on behind the scenes. As this isn’t a supported method of connection for onedrive there isn’t too much else you can do. Sorry!

    Bob said:
    February 11, 2015 at 9:05 am

    Any idea why I have to re-enter my credentials each time? I check the box to remember credentials but each time I reboot I have to enter them again. I use an application key as I have two factor auth on with my Live/Office 365 ID. Thanks!

      mshansen01 responded:
      February 11, 2015 at 4:47 pm

      Hey Bob! Though I’ve not looked too deep into Microsoft’s TFA I’m assuming you have to re-enter your credentials each time because the session you used last time is no longer valid. Typically with TFA you’re granted a token for each “session”, which is generated each time you use that second factor to authenticate yourself. Unfortunately since this script doesn’t tie into that framework it will require you to login each time. You may be able to pre-populate the script with your credentials or have it call another file that holds your credentials and use NTFS encryption to encrypt the file so that only your account has access to read it. Thanks!

    serrebi said:
    July 29, 2015 at 10:38 am

    Thank you so much for this utility. I was trying to do this manually but I was getting nowhere.

    Niteen said:
    September 19, 2015 at 3:37 am

    thanks. It worked nicely for me. Bit slow but far better & useful than using one drive official app. Will it work on a XP run in virtual drive?

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