OnedriveMapper v3.06 released!

Version 3.06 of OneDriveMapper has been released!

  • userLookupMode 6 added, which displays a full and customizable login form to the user which asks for username and password
  • added user login caching for userLookupMode 1 and 2, so the script won’t fail if the user is roaming away from a DC and the login is cached
  • fixed a reference to my test domain in Azure AD PassThrough (
  • fixed a crash when ADFS denies the request in native mode (now properly falls back to IE auth mode if allowed)
  • first basic support for Azure AD SSO

Get the new version here

Leave a Reply

18 Comments on "OnedriveMapper v3.06 released!"

Notify of
Sort by:   newest | oldest | most voted
Reta Kneale

I’ve tried everything I can think of and can’t figure out why this is not working! the script executes fine if I run with powershell. the group policy object is applying without errors but the script never executes – I have set delay logon scripts to 1 minute and disabled in default domain policy — no change in behavior – this is on server2016 rds deployment

here’s my gpo setting

Name powershell.exe

Parameters C:WindowsSystem32WindowsPowerShellv1.0powershell.exe ExecutionPolicy ByPass -WindowStyle Hidden -FILE \rdsmgmtonedrivelogonHB1DRIVE.PS1

Reta Kneale

Jos – thank you! the – in ExecutionPolicy is what I was missing plus using %windir%system32 allowed the script to run successfully — on first time run for users it shows the powershell window a couple times but those close out – then on subsequent runs no windows only the “onedrive mapper is mapping your drive” —

Peter this is just set to apply to the domain — no delegation is needed

Peter H

Have you added Domain Computers or the systems you want to apply it it to to the delegation in GPO?

Reta Kneale

-fyi – I know the script doesn’t run because it never creates the window which I’ve allowed during execution –mapping one drive — and no log is ever created


did you forget the – in -ExecutionPolicy?
Someone also mentioned they have to use %SYSTEM% type of variable (%WINDIR% perhaps).

Peter Summers

I’m running this script and it works fine when I map V: drive, but if I edit the script to map U: drive instead then the drive is mapped correctly (it’s listed with NET USE, and I can go to it) but it doesn’t display as a drive in Windows Explorer under Computer.

Has anyone else seen this?




1) so does this run on the ‘host’ machine or on the RDS/Citrix client?
2) does this work for Citrix streamed apps?


Testing it now.
We were using version 2.53 before and out of the 10 times login in about 2 or 3 times it wouldn’t connect.
So far this seems to be doing good.
How long should it take on average to have the onedrive connected as a drive? I have not exactly recorded the time but it feels like it takes a minute or so when it’s connecting when logging (still not bad and definitely workable).