SOLVED

How to map OneDrive?

%3CLINGO-SUB%20id%3D%22lingo-sub-285187%22%20slang%3D%22en-US%22%3EHow%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285187%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20map%20a%20drive%20letter%20to%20OneDrive%3F%20If%20it%20is%2C%20how%20to%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENeed%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-285187%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285652%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285652%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Fred%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply%20and%20letting%20me%20know%20your%20experience.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285651%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285651%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Adam%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20help!%20You%20answered%20my%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285536%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285536%22%20slang%3D%22en-US%22%3ETrue%2C%20when%20the%20token%20expires%20an%20reauthentication%20needs%20to%20be%20done!%20The%20script%20above%20does%20help%20you%20out%20with%20that%20though%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285531%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285531%22%20slang%3D%22en-US%22%3E%3CP%3EI%20agree%20mapping%20using%20WebDAV%20is%20not%20a%20long-term%20solution.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20had%20issues%20with%20my%20end-users%20since%20mapped%20drive%20gives%20an%20error%20when%20the%20connection%20expires%20and%20logged%20out%20the%20user.%20This%20will%20be%20confusing%20to%20the%20user%20since%20they%20will%20need%20to%20re-connect%20before%20the%20shortcut%20works%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Ffredyano%2Fstatus%2F1059843707204038656%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftwitter.com%2Ffredyano%2Fstatus%2F1059843707204038656%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFred%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285527%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285527%22%20slang%3D%22en-US%22%3EIf%20it%E2%80%99s%20only%20to%20use%20onedrive%20instead%20of%20The%20home%20drive%20I%20would%20suggest%20to%20train%20users%20how%20to%20work%20with%20the%20onedrive%20client%20instead%20using%20the%20sync%20engine%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285526%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285526%22%20slang%3D%22en-US%22%3EI%E2%80%99ve%20used%20this%20one%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.lieben.nu%2Fliebensraum%2Fonedrivemapper%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.lieben.nu%2Fliebensraum%2Fonedrivemapper%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYes%20you%20can%20set%20the%20drive%20letter%20to%20H%3A%3CBR%20%2F%3EJust%20a%20warning!%20This%20is%20mostly%20not%20the%20best%20way%20of%20using%20onedrive!%20Also%20mapping%20onedrive%20to%20driveletter%20via%20WebDAV%20is%20not%20supported%20by%20Microsoft%20so%20it%20can%20break%20anytime%20if%20Microsoft%20changes%20some%20authentication%20stuff%20behind%20the%20scenes%20and%20so%20on!%3CBR%20%2F%3EWhat%20is%20your%20usecase%20for%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285510%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285510%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Adam%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20plan%20to%20migrate%20users's%20home%20directory%20to%20OneDrive.%20The%20home%20directory%20is%20mapped%20as%20letter%20H%2C%20so%20I%20wonder%20if%20we%20can%20keep%20the%20same%20letter%20so%20user%20will%20be%20less%20confused.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20share%20the%20script%20to%20me%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285189%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20map%20OneDrive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285189%22%20slang%3D%22en-US%22%3EBy%20design%20-%20No!%3CBR%20%2F%3EThere%20is%20script%20out%20there%20and%20third%20party%20tools%20doing%20this%2C%20but%20I%20mostly%20do%20not%20recommend%20doing%20it!%20Been%20down%20that%20road%20a%20few%20times%20with%20customers...%3CBR%20%2F%3EWhat%20is%20your%20usecase%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi,

 

Is it possible to map a drive letter to OneDrive? If it is, how to?

 

Need help!

 

Thanks in advance!

8 Replies
Highlighted
By design - No!
There is script out there and third party tools doing this, but I mostly do not recommend doing it! Been down that road a few times with customers...
What is your usecase?

Adam
Highlighted

Hi Adam,

 

Thank you for your reply.

 

We plan to migrate users's home directory to OneDrive. The home directory is mapped as letter H, so I wonder if we can keep the same letter so user will be less confused.   

 

Can you share the script to me?

 

Many thanks!

Highlighted
Solution
I’ve used this one:
https://www.lieben.nu/liebensraum/onedrivemapper/

Yes you can set the drive letter to H:
Just a warning! This is mostly not the best way of using onedrive! Also mapping onedrive to driveletter via WebDAV is not supported by Microsoft so it can break anytime if Microsoft changes some authentication stuff behind the scenes and so on!
What is your usecase for this?
Highlighted
If it’s only to use onedrive instead of The home drive I would suggest to train users how to work with the onedrive client instead using the sync engine
Highlighted

I agree mapping using WebDAV is not a long-term solution. 

 

I've had issues with my end-users since mapped drive gives an error when the connection expires and logged out the user. This will be confusing to the user since they will need to re-connect before the shortcut works again.

 

https://twitter.com/fredyano/status/1059843707204038656 

 

Fred

 

Highlighted
True, when the token expires an reauthentication needs to be done! The script above does help you out with that though
Highlighted

Hi Adam,

 

Thank you for your help! You answered my question.

 

Thanks again, 

Highlighted

Hi Fred,

 

Thank you for your reply and letting me know your experience.