Forum Discussion
OneDrive auto setup
- Jul 23, 2019
Ok, finally got OneDrive to work correctly, whether the device is showing in Azure AD, or not. The fix is, in addition to setting the Admin Template settings to what MS says, is also to set HKCU\Software\Microsoft\OneDrive\EnableADAL to a data value of 2. OneDrive creates it with a data value of 1. Once I changed it to 2 (any number other than 1 may work), OneDrive immediately started working correctly. No more user prompts, interruptions, or failures. It just loads and syncs. As a side note, I started running OneDriveSetup.exe with the /allusers switch to only have one installation of OneDrive.exe. The /allusers switch puts it under a new program files (x86)\Microsoft OneDrive folder. Just be aware that if you do the /allusers, anyone with OneDrive already installed and working, will get a Sign in error. All they need to do is click the "OK" button and it resigns them in. This is a one-time resign in.
What version of OneDrive are you trying with? We've been having problems with the more recent versions not performing silent setup until after something has been put into the setup screen. In the "Enter your email address" box, we can put anything, click sign in and then cancel the logon screen that follows, the onedrive client will then close, the next time we load the onedrive client, silent config will run correctly.
It's really puzzling as you can repeatedly open and close the client and it will not run the silent setup until after a first time attempt at manual. I've tried running process monitor and repeating all of the files / registry settings before running the one drive client for the first time on a new user and it makes no difference.
We had it working in 19.002.0107.0008 and I'm now trying to find a way back to that for testing, unfortunately that's older than the new per machine install we also want to use!
Chris.
ChrisShearing I've tried both 19.043.0304.007 and 19.086.0502.006 of OneDriveSetup.exe. Neither start the auto setup of OneDrive. Since we have OneDrive updating automatically, after any manual OneDrive setup, the OneDrive.exe version is 19.086.0502.006