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


  • Warning about Settings on ODM Initial Run
    1 Posts | Last post January 21, 2019
    • I'm on Windows 10 Pro. I downloaded and ran OneDriveMapper (ODM) with PowerShell. ON the initial run Windows warned me about a setting that ODM required would make my data vulnerable. I assumed it would either change that setting back, or instruct me on how to do that after it completed. After running in the command window, there were no additional prompts, and seemingly no evidence that ODM accomplished anything. 
      
      So, ODM did not map my OneDrive volume, and it made my data vulnerable. 
      
      Please help me. I do need to mount/map my OneDrive volume. Beyond that, whether OneDrive gets mapped or not, I'll need to undo that initial setting that made my data vulnerable.
      
      Thank you in advance.
      
  • Mapped Library Default Folder Issue
    1 Posts | Last post November 27, 2018
    • I have a site where the default location my mapping takes me is to a sub folder, why might that be?
  • Site Libraries mapping
    1 Posts | Last post November 27, 2018
    • Are you able to have other created libraries on the site mapped besides the main "Documents" library?
  • Can this work with MFA?
    1 Posts | Last post October 02, 2018
    • Hi
      
      We have recently turned on MFA for user accounts, using ADD and Condtional Access and the one drive mapper no longer works on a Citrix VDI.
      
      Thanks
  • Error 53 on Windows 8.1 Pro
    1 Posts | Last post October 02, 2018
    • Hi there... I'm sorry, but I'm getting the error 53 on Windows 8.1 (tried W10 with same config and worked smoothly...) Neither 3.17 nor 3.18 working. Any ideas?
      
      10/02/2018 14:03:17 | INFO | Mapping target: \\xxxxx-my.sharepoint.com@SSL\DavWWWRoot\personal\xxxxx\Documents
      10/02/2018 14:03:18 | ERROR | failed to contact X: after mapping it to \\xxxxx-my.sharepoint.com@SSL\DavWWWRoot\personal\xxxxx\Documents, check if the URL is valid. Error: 
      No se ha encontrado la ruta de acceso de la red.
      
       Error de sistema 53. 
      No se ha encontrado la ruta de acceso de la red.
      
      FAQ says:
      Remove the trailing / behind the sharepoint URL. Also, make sure there are no double spaces in the library name, and that the library name is 100% sure correct (try manually mapping it and checking net use)
      
      Where is that trailing? I did try to manually map it and command prompt gives same error on different W8.1 machines (while working on W10)...
  • Fall back mode switching from Native to IE
    2 Posts | Last post September 28, 2018
    • Using OneDriveMapper v3.17. 
      Some of our Citrix Users are getting a Warning: fall back mode switching from native to IE
      When this happens the console runs for a long time and the only mapping they get is OneDrive for Business on X:
      
      They are unable to map to Groups that they are following in SharePoint online. 
      Even if they do not follow groups, this warning comes up switching them from Native to IE and the console comes up and takes a long time to complete the script.
      
      I have tried several things to try and resolve like Reset and Restore IE settings, rename their roaming profile in Citrix, clear all Cookies/Cache/History from IE. Remove the favorites in O365 Groups and unfollow under Sharepoint. 
      Try different Browsers, different Citrix client versions, different OS versions and different machines. 
      
      I am unable to reproduce the error with my account or a test account.
      
      Does anyone have any suggestions on how I look at their Registry setting to compare why it wants to switch from Native to IE? 
      That's all I can think of. Not sure what else to look at in settings or IE.
      
      Thanks for any help.
      Denise
    • Hello All,
      
      We figured out the cause of "Fall back mode switching from native to IE."
      
      Some people had their Start page in O365 pointing to OneDrive or it was pointing to OneDrive but not going there. Once the Start page was changed to Office 365 Home Page or Outlook, OneDriveMapper successfully mapped the O365 Groups.
      
      Hope this helps other people!
      
      Denise
  • mapping with seamless SSO
    3 Posts | Last post September 21, 2018
    • Hi, 
      
      we are trying to use the script to map, drives.
      Ad-connect is used with seamless SSO.
      We ste the AzureAADConnectSSO to True.
      with authmethod to IE
      in the mog we see that onedrive cookie is generated
      
      but we always encounter error 224 , Access refused
      
      What could be wrong ?
    • additional;
      
      we have a warning saying "Failed to force signin in persistence"
    • authmethod IE is old, I'd recommend trying native mode. If that doesn't help, please check my blog's FAQ
  • Error
    2 Posts | Last post September 19, 2018
    • Hi Jos,
      
      Hope you are doing well.
      I am trying an old version of your script.
      It is picking up the onedrive correctly but failing with following error.
      Can you help me on identifying whats the issue
      
      current URL: https://login.microsoftonline.com/b4986ceb-2bea-4972-9802-e93f42ed6f6d/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=EBFCB47D78BC6C0EA5390FB371D8ECF3DAF616F79F3E8007-CB1D878A52278AADC5CC065C1B48B4125A778F4C55EF64054E97E1AF99D6039E&redirect_uri=https:%2F%2Fstaidansacademy-my.sharepoint.com%2F_forms%2Fdefault.aspx&wsucxt=1&cobrandid=11bd8083-87e0-41b5-bb78-0bc43c8a8e8a&client-request-id=85a47c9e-60f8-6000-12f2-1a0b1ca5913b
      Detected running explorer process
      Login attempt at Office 365 signin page
      attempting to trigger a redirect to ADFS
      Failed to find the correct controls at https://login.microsoftonline.com/b4986ceb-2bea-4972-9802-e93f42ed6f6d/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=EBFCB47D78BC6C0EA5390FB371D8ECF3DAF616F79F3E8007-CB1D878A52278AADC5CC065C1B48B4125A778F4C55EF64054E97E1AF99D6039E&redirect_uri=https:%2F%2Fstaidansacademy-my.sharepoint.com%2F_forms%2Fdefault.aspx&wsucxt=1&cobrandid=11bd8083-87e0-41b5-bb78-0bc43c8a8e8a&client-request-id=85a47c9e-60f8-6000-12f2-1a0b1ca5913b to log in by script, check your browser and proxy settings or check for an update of this script
      
      autoProtectedMode is set to True, reverting to old settings
      Setting zone 1 back to 3
      Setting zone 2 back to 3
      Setting zone 3 back to 3
    • I am also experiencing the same issue.  Did you find a solution.  We've been using this script for over a year now however just recently it stopped working with the same error messages along with this one:
      
      ERROR | ERROR: detected string error 224 in return code of net use command, this usually means your trusted sites are misconfigured or KB2846960 is missing
      
      Any guidance on what to look at would be appreciated.
  • mapping with seamless SSO
    2 Posts | Last post September 07, 2018
    • Hi, 
      
      we are trying to use the script to map, drives.
      Ad-connect is used with seamless SSO.
      We ste the AzureAADConnectSSO to True.
      with authmethod to IE
      in the mog we see that onedrive cookie is generated
      
      but we always encounter error 224 , Access refused
      
      What could be wrong ?
    • 09/07/2018 09:53:54 | INFO | attempting to trigger a redirect to SSO Provider using method 1
      09/07/2018 09:53:57 | INFO | KMSI prompt detected
      09/07/2018 09:53:57 | INFO | Waited 0 of 1 seconds for SSO redirect. While looking for userNameInput at https://login.microsoftonline.com/login.srf?msafed=0. If you're not using SSO this message is expected.
      09/07/2018 09:53:58 | INFO | KMSI prompt detected
      09/07/2018 09:53:58 | INFO | Waited 0.5 of 1 seconds for SSO redirect. While looking for userNameInput at https://login.microsoftonline.com/login.srf?msafed=0. If you're not using SSO this message is expected.
      09/07/2018 09:53:58 | INFO | waited for more than 1 to get redirected by SSO provider, attempting normal signin
      09/07/2018 09:53:58 | WARNING | Failed to force sign in persistence
      09/07/2018 09:53:58 | INFO | Retrieved user password from cache C:\Users\testsf\AppData\Roaming\OneDriveMapper.tmp
      09/07/2018 09:54:04 | WARNING | no KMSI prompt even though we expected one
      09/07/2018 09:54:05 | INFO | login detected, login function succeeded, final url: https://www.office.com/?auth=2&home=1
      09/07/2018 09:54:05 | INFO | IE login function succeeded
      09/07/2018 09:54:12 | INFO | Detected user: testsf_inowai_com
      09/07/2018 09:54:12 | INFO | Onedrive cookie generated
      09/07/2018 09:54:12 | INFO | Mapping target: \\inowai-my.sharepoint.com@SSL\DavWWWRoot\personal\testsf_inowai_com\Documents
      09/07/2018 09:54:13 | ERROR | failed to contact x: after mapping it to \\inowai-my.sharepoint.com@SSL\DavWWWRoot\personal\testsf_inowai_com\Documents, check if the URL is valid. Error: 
       L'erreur systŠme 224 s'est produite. 
       AccŠs refus‚. Avant d'ouvrir des fichiers de cet emplacement, vous devez d'abord ajouter le site Web … votre liste de sites approuv‚s, acc‚der au site Web, puis s‚lectionner l'option de connexion automatique.
      
  • Error - ... does not contain a method named 'Replace'.
    2 Posts | Last post August 29, 2018
    • Dear Jos, thanks for the fab script! We have been using it for a while now without any problems.
      Since this morning we are getting a error when executing the script.
      
      Method invocation failed because [System.Int32] does not contain a method named 'Replace'.
      At C:\software\teams.ps1:3271 char:9
      +         $payLoad = (returnEnclosedFormValue -res $res -searchString " ...
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
          + FullyQualifiedErrorId : MethodNotFound
      
      Would you be able to help?
      
      Regards,Steven
      
      
    • Change $autoMapFavoriteSites  = $False   
      Had the same problem
      good luck
      
11 - 20 of 191 Items