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.
There are GPOs for that: https://docs.microsoft.com/en-us/onedrive/use-group-policy#SilentAccountConfig
- Paul LongJun 20, 2019Brass Contributor
Hi, Vasil Thanks for the quick reply. Yes, I know about that doc, and have tried everything in it. The GPO works as far as setting the registry, etc, and silently logs in AFTER the first time use. It's the first time use setup we wish to automate. The only auto thing I can do during this first time use setup, is use PowerShell to pre-populate the users email address. But the user still has to click Next, fill in their password on the SSO screen, and continue clicking the rest of the way through the setup. That's what we're trying to avoid. Another thing I've noticed, is that it looks like the credentials in the credential manager, and the OneDrive - <organization>, aren't created until the last click of the setup.VasilMichev