Jump to content

Recommended Posts

Posted

So, i thought i'd spend the day seeing if OneDrive Mapper works.

 

It seems that it needs the user's password to connect to O365 or it requires an ADFS server to forward the login.

 

I've added our tenant information to Site to Zone Assignment List in Group Policy and given it a value of 2 for both https://xxx-my.sharepoint.com and http://xxx.sharepoint.com.

 

In the OneDrive Mapper script, under $userlookupmode = 6 - this works flawlessly however i don't want the form to be displayed each time the user signs in.

 

Setting $userlookupmode = 1 or 2 this is when i start to run into issues

 

03/11/2019 16:13:49 | INFO | Detected an url that indicates we've been signed in automatically: https://www.office.com/?auth=2&home=1
03/11/2019 16:13:49 | INFO | login detected, login function succeeded, final url: https://www.office.com/?auth=2&home=1
03/11/2019 16:13:49 | INFO | IE login function succeeded
03/11/2019 16:13:59 | INFO | Detected user: xxxxxxxxxxxxxxxxxxxxxxxxxx
03/11/2019 16:13:59 | INFO | Onedrive cookie generated
03/11/2019 16:13:59 | INFO | Mapping target: \\xxxxxxxxxxxxxxxx-my.sharepoint.com@SSL\DavWWWRoot\personal\xxxxxxxxxxxxxxxxx\Documents
03/11/2019 16:14:00 | 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 or Internet Explorer needs a reset
03/11/2019 16:14:01 | ERROR | failed to contact H: after mapping it to \\xxxxxxxxxxxxxxx-my.sharepoint.com@SSL\DavWWWRoot\personal\xxxxxxxxxxxxxxxxxxxxxxxx\Documents, check if the URL is valid. Error: 
System error 224 has occurred. 
Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.


03/11/2019 16:14:04 | INFO | autoProtectedMode is set to True, reverting to old settings
03/11/2019 16:14:04 | INFO | Setting zone 0 back to 0
03/11/2019 16:14:04 | INFO | Setting zone 1 back to 3
03/11/2019 16:14:04 | INFO | Setting zone 2 back to 3
03/11/2019 16:14:04 | INFO | Setting zone 3 back to 0
03/11/2019 16:14:04 | INFO | Setting zone 4 back to 0
03/11/2019 16:14:04 | WARNING | restartExplorer is set to False, if you're redirecting folders they may not show up
03/11/2019 16:14:04 | INFO | OnedriveMapper has finished running

 

Setting $userlookupmode = 4 asks the user for an email address only. Once the email address is added, the OneDrive Mapper then adds the drive to This PC.

 

Do i need an ADFS server for this to work correctly? If so, that's the gotcha for me or am i missing something that's actually staring me in the face.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...