Cloud Misc. Storage Windows
Matt Hansen  

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

Reading Time: 2 minutes

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)

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!

 

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

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

  2. skier150

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

  3. Hal

    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

    1. mshansen01

      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!

  4. Bob

    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!

    1. mshansen01

      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!

  5. serrebi

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

  6. Niteen

    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

Discover more from Hansen Cloud

Subscribe now to keep reading and get access to the full archive.

Continue reading