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
(111)
62,824 times
Add to favorites
Office 365
2/3/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Drive Mapping usinjg TLS1.1
    5 Posts | Last post March 30, 2018
    • The script has been working fine using TLS1.1. But recently it stopped mapping the drive. The log says “Error detected while following redirect, check the FAQ for help”
      
      Does the script only work if using TLS1.2?
      
    • Dear Kaoru,
      
      I have the same error.
      Were you able to solve yours ?
      
      With Kind regards,
      
      Kiran Avinash Ghisaidoobe
    • I'm having the same problem.  Any solution?
    • Having the same problem.
    • It is because portal.microsoftonline.com is down.
      So from ADFS it redirects to the url but it can not do anything.
      I do not know if it is the script or in adfs because normally adfs functions properly
      And Microsoft told me they are not sure if the url is coming back.
      
      If you have any ideas to fix this please share it also with me :)
      
      
  • Error 224 : Access denied
    2 Posts | Last post March 23, 2018
    • Hi Jos,
      
      We did add the site to the trusted sites, but this didn't resolve the issue. The option 'Stay Signed-In' isn't shown on the new sign experience login site. We checked but there is currently no company branding enabled.
      
      Any idea what could be wrong and how we can solve this?
      
      Cheers,
      
      Tom B.
    • I found that sometimes I have to login to office365 first, then the script works. It would be nice if I did not have to do that. 
  • onedrive mapped drive is same size as my hard drive
    1 Posts | Last post February 26, 2018
    • Is that the way it is supposed to be?  I thought we had 1 TB per person atleast but we have some members that their hard drive is only 250 GB and they are getting out of space errors when trying to save to 1 drive.  And their mapped onedrive only shows 250GB.  it shows on everyones that whatever their hard drive is, is what their mapped onedrive is.  
  • Script working perfectly, but it's mapping my personal Sharepoint folder instead of an online location
    1 Posts | Last post February 22, 2018
    • Hello,
      
      It works brilliantly, only problem being that instead of mapping the destination I've fed the script with in $sharepointmappings=https://test.sharepoint.com/testfolder/forms/allitems.aspx
      , it then decides to re assign it to a my.sharepoint location instead.
      
      "Username detected, your onedrive should be at \\test.mysharepoint.com@SSL\DavWWWRoot\personal\Username\Documents.
      
      All I want it to do is to map the specific location that I fed him with.
      
      Any suggestion?
      
      Many Thanks :)
  • Transition from the previous OneDrive for Business sync client
    1 Posts | Last post February 22, 2018
    • Hello,
      
      Is this script compatible with the new OneDrive client detailed below?
      
      https://support.office.com/en-ie/article/transition-from-the-previous-onedrive-for-business-sync-client-4100df3a-0c96-464f-b0a8-c20de34da6fa
      
      The OneDrive for Business client is being depricated and replaced by a OneDrive client for all use cases.
  • Upload limit
    1 Posts | Last post February 16, 2018
    • Hi is there any way to change the upload file size ? 
  • Script No Longer Mapping the Drives
    1 Posts | Last post February 09, 2018
    • Hi Jos,
      
      Today we have found users have lost the drive maps which they already had in place.
      Resending the script to their machine has not re-mapped them and manually running the script on the machine shows errors which refer to it failing to set INETCOOKIES cookie/s. 
      
      Additionally, it states that access was denied trying to connect to the folder within Sharepoint they have access to. IT suggests adding the web site to the trusted site lists and ensure automatic login is enabled, which it is and they are logged in at present. 
      
      I am trying to ascertain which changes, if any, could have caused this to stop running succesfully.
      
      Any help or advice would be greatly appreciated.
      Happy to provide screenshots of errors if required.
      
      Thanks,
      
      Gianni
  • WebDAV Mapping
    6 Posts | Last post February 01, 2018
    • Hi Jos,
      
      This script used to work really well before Microsoft updated their sign-in page. I've just downloaded the new script, but I'm unfortunately running into issues. Specifically, I'm trying to map SharePoint as a WebDav folder, and because I set $authMethod to "ie", it now gets stuck on the Delve.office.com page and refreshes it multiple times, saying: "Attempting to detect username at https://gbr.delve.office.com..., waited for 26 seconds". After 60 seconds, it then fails saying it could not detect a username or password. 
      I have tried to change $authMethod to "native", but then I get the following:
      
      "INFO | Waited for 180 seconds for O4b auto provisioning...
      ERROR | Failed to auto provision onedrive and/or retrieve username from the response URL. Is this user licensed?
      INFO | Will attempt to use auto-guessed value of \\companyname-my.sharepoint.com@SSL\DavWWWRoot\personal\user_companyname_co_uk\"
      
      It then tried to map that personal URL, whereas it should be mapping only the company name (i.e. https://companyname.sharepoint.com). 
      Any help with this would be greatly appreciated!
    • that sounds like the user doesn't have Onedrive, otherwise it shouldn't end up at the Delve page...
    • I having the issue as above:
      
      "INFO | Waited for 180 seconds for O4b auto provisioning...
      ERROR | Failed to auto provision onedrive and/or retrieve username from the response URL. Is this user licensed?
      INFO | Will attempt to use auto-guessed value of \\companyname-my.sharepoint.com@SSL\DavWWWRoot\personal\user_companyname_co_uk\"
      
      It's my account and use OneDrive and fully licenced, any ideas? We are using Azure Simple SSO which is working great!
      
      TIA
    • You'll have to contact me @ my blog (http://www.lieben.nu/liebensraum/contact) with logs and probably a VM so I can reproduce your issue for you.
    • Same here, unable to map drive X: after 180 seconds...
      
    • We are ok now. This was tested and running properly under Horizon View 7.3 as well!, nice script, well done!
  • Does this work on an account with MFA?
    2 Posts | Last post January 26, 2018
    • Does this work on an account with Azure AD Premium MFA enabled?
    • There is a bit of basic support for that in IE auth mode, native doesn't support it
  • System Error 53
    2 Posts | Last post January 26, 2018
    • Hi Jos,
      
      Does it work with SSO via AD Connect (Synchronized Identity)? 
      We ran the script and we're getting the error below.
      ERROR |Failed to contact X: after mapping it to \\onedrivemapper-my....
      
      System error 53 has occurred.
      The network path was not found.
      
      Regards,
      Ted
      
      
    • Yes, it does, 53 usually has something to do with the webdav client, check my blog/FAQ
31 - 40 of 191 Items