OneDriveMapper automatically map your OneDrive for Business upon login

This script maps your Onedrive / Sharepoint / Teams document libraries to driveletters (or shortcuts). It can be used in any environment (VDI, RemoteApp, w10 etc).

 
 
 
 
 
4.6 Star
(116)
77,746 times
Add to favorites
Office 365
2/3/2019
E-mail Twitter del.icio.us Digg Facebook
  • cant map drive
    2 Posts | Last post July 20, 2017
    • Hi Jos 
      
      I need help
      I running a script and receive 
      
      ERROR | We do not seem to have been properly redirected after signing in.
      ERROR | fallback mode is enabled, and login failed. Attempting IE auth mode.
      
      at end of running script pop up error:
      Mapping cannot continue because we cannot detect your username 
    • download the latest version from my blog, it was fixed in v3.09 after a change by MS
  • OneDriveMapper not working with RMUnify
    2 Posts | Last post July 14, 2017
    • Hi Jos,
      
      I'm trying to get this script working with RMUnify, but am getting exactly the same error message as one of the other users here:
      
      It throws the errors:
      
      Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
      Parameter name: length"
      
      Method invocation failed because [System.Int32] does not contain a method named 'IndexOf'.
      
      Exception calling "Create" with "1" argument(s): "Invalid URI: The format of the URI could not be 
      determined."
      
      From your notes in the script I can see that you have support for RMUnify so are you able to offer any further advice?
      
      Many thanks in advance,
      
      Phil
    • Last time I did anything around RMUnify, it was in IE auth mode, native auth mode won't work with RMUnify until I do dev on it, which I most likely won't as I don't have RMUnify :)
  • WebDAV Space Reporting
    4 Posts | Last post June 28, 2017
    • Hello.
      
      First, thank you for this excellent script.
      
      Second, Question - the known WebDAV issue (by design) about not reporting the true space available and instead mirroring the space on the System drive - does this actually limit the amount of storage available, or would the full amount of space (In the case of OFB - 1 TB) be available?
      
      Thanks
      
      Ed
    • Its all available :)
    • Thanks!
      
      Ed
    • hi, it seems that it is not like this. I mean if it shows that you have 4 GB free based on your drive C, you really have only 4GB. I just checked it. Am I doing something wrong?
  • Can't run from shortcut
    1 Posts | Last post June 23, 2017
    • Great script that works when I run it manually, but I'm trying to get it to run from a shortcut and all I get is a quick flash of the command prompt and then nothing.
      
      Shortcut target is:
      C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -ExecutionPolicy ByPass -File “C:\Program Files (x86)\OneDriveMapper\OneDriveMapper_v1.ps1”
      
      I tried using %SystemRoot% instead of C:\Windows but it doesn't make a difference.
      
      I even set the execution policy to unrestricted but it didn't help.
      
      Thanks in advance for any guidance!
  • Hi Jois
    1 Posts | Last post June 22, 2017
    • Thanks for script. It works as expected for mapping OneDrive for some users but it fails on certain users . Please find below the error log.Will you be able to help me here. Note i have changed my company and user details.
      
        | INFO | IE login function succeeded
        | INFO | Attempting to detect username at https://login.microsoftonline.com/a00452fd-8469-409e-91a8-bb7a008e2da0/oauth2/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code%20id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=39FFAFC9006DAE89E9D4F6DE415B41C683ADD5F4046EA6F5-31FB34D7250943AF75C742CE81E4E19335AF193080E0A6BEB75B0A52278A85EF&redirect_uri=https:%2F%2Fmycompany-my.sharepoint.com%2F_forms%2Fdefault.aspx&state=0&client-request-id=4f37fe9d-a0c4-3000-2b48-8e38666820cf, waited for 0 seconds
      06/22/2017 14:29:53 | INFO | Attempting to detect username at https://login.microsoftonline.com/a00452fd-8469-409e-91a8-bb7a008e2da0/oauth2/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code%20id_token&resource=00000003-0000-0ff1-ce00-000000000000&scope=openid&nonce=2BCA775A62805468A2A10132044727F13EE639EF1AF5BBA6-179FED0F25BFFCD24CF153731FCAAE83A3C71716E9A972F4C3EA4B5DA07F4A1D&redirect_uri=https:%2F%2Fmycompany-my.sharepoint.com%2F_forms%2Fdefault.aspx&state=0&client-request-id=5137fe9d-30a0-3000-2b48-89be96f55459, waited for 2 seconds
      
      
      
  • Does mapped drive takes away local disk space ?
    4 Posts | Last post June 18, 2017
    • I know that "by design" mapped drive mirror local disk drive but does it take local disk space as my tests seems to indicate ? Is there a way "not to sync" on local drive what ever I put in the mapped drive ? Am I missing something ?
      
      First off I am no savvy tech but I try to find ways to save my non-profit clients every penny I can. Most of them are on a workgroup setup fashion and like regular business they need security, means of backup, file sharing and so on but at a fraction of the cost. I try to set them up so they don't have to pay huge monthly bills in order to operate their computing environment.
      
      So I am always excited to figure out ways of simplifying computing process and onedrivemapper could be a nice solution for sharing and/or backup purposes.
      
      Thanks !
    • Seems to me that you ALSO have OD client installed. And that one does the sync. Uninstall OD client & use ONLY ODMapper
    • Yes you got that right but I tried it on another machine and it did take space locally. So you say it's not supposed to do that right ?
    • It is DIRECT drive mapping, not sync, so it does NOT take any local space!
  • 2-factor authentication
    2 Posts | Last post June 18, 2017
    • Is there any technical way that this could possibly work?
    • It is DIRECT drive mapping, not sync, so it does NOT take any local space!
  • How do you apply the policy via RDS
    1 Posts | Last post June 01, 2017
    • I am attempting to apply your policy script via rds but cant seem to figure it out. Should i set it up as a user based or computer based policy. I have the script catered to our tenant and it works perfectly if i run it locally on any machine but applying it as a gpo policy its not being applied. 
  • Awesome Tool!!!
    1 Posts | Last post June 01, 2017
    • Thanks so much for taking the time to put this together.  Well done!
  • 5 stars!
    1 Posts | Last post June 01, 2017
    • Hello Jos... me again... (Mr Persistent:No) I am so glad to have helped add a parameter to your script :-)
      I'm using your hard work a great deal! I am thinking of doing some blogs around what can be done and will credit you accordingly - I assume you are OK with that? - cheers, Andrew
71 - 80 of 197 Items