Forum Discussion
Silently configure OneDrive using Windows 10 or domain credentials
- Avian 1Nov 18, 2017Iron Contributor
Hi Priyank
First I uninstalled the onedrive from my machine. Then set ENABLEADAL and silentconfig and as you suggested I changed HKCU\Software\Microsoft\OneDrive\ClientEverSignedIn to 0 earlier it was 1.
Rebooted machine, but no luck.
In your last post you mentioned GPO that distributes the registry key for SilentConfig - ENSURE that the this is linked to the OU that has Computer objects in it. Can you please explain more about this?
I am attaching screenshot for your reference, let me know If I am still missing anything
Can you share screenshot of onedrieve related registry and GPO settings of your machine?
Avian
- Jarret TitoskyMay 09, 2018Copper Contributor
I was also having this problem and it sounds like my environment is similar to yours (ADFS and MFA) In addition to setting the GPOs you have set and setting the reg value "ClientEverSignedIn" to 0, I also had to set "SilentBusinessConfigCompleted" to 0.
Once that was done, it began to work when OneDrive is launched.
It's a requirement that all my users be logged into OneDrive whether they want to or not, so I've created another GPO to check if the user is configured and reset the above reg keys to 0 if they are not.
OneDrive creates a new key in the format of Business<digit> under "HKCU\Software\Microsoft\OneDrive\Accounts" for any business accounts that have been logged into OneDrive. Under that key, you can use "ConfiguredTenantID" to check that they're configured for your tenant and "UserFolder" to see where it is configured to sync to.
Also, if OneDrive does not start in the foreground, it will not configure using ADAL. The OneDrive startup reg key has the "/backgroud" parameter set, so my GPO checks to see if the user is configured and if they are not, it adds a RunOnce entry without the "/background" parameter.
It would seem HTM files are not allowed to be attached, so I've attached a screenshot of my GPO report.
The HTML can also be found here if you'd prefer that:
https://pastebin.com/1ebujuU5- Darren KattanJul 13, 2018Copper ContributorDoes this method eliminate the need for user interaction or does the user still have to click something?