How to mount your OneDrive as a local mapped drive: Part 2
Reading Time: 2 minutesA 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)
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.
- Your Microsoft CID
- Your Email
- 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!
- Go login at https://www.onedrive.com
- Click “Files” once you’ve logged in
- Copy the CID in the top URL bar
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!
October 3, 2014 at 9:24 pm
[…] 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/ […]
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.
October 4, 2014 at 6:21 am
https://onedrive.live.com/redir?resid=242FC004453B650B!111&authkey=!AFNy5Vd3lsQv1bM&ithint=folder%2cps1 there you go, just updated that link.
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
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!
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!
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!
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.
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?