Working on Windows 10 migration project and there is a need to enable automatic sign in of OneDrive for Business client when new user profile has been created. Windows 1709 image is golden installation image that will be used for global deployment. In the past months I have been working on different parts and with Windows 10 1709 the OneDrive client is now fully integrated into the profile.
The challenge I have is to do more automatic configuration. Speed up the profile creation process for smooth and less IT effort to deliver the computer to the end user.
Thanks to Adam Fowler from his post https://www.adamfowlerit.com/2018/02/onedrive-business-auto-sign-windows-10/ I was able to complete the remaining part on my end. The perquisites to have my script are working:
- ADFS infrastructure
- AD internal UPN same as in the cloud
- Office 365 licenses enabled
I have done my homework, ADFS is in place, UPN is fixed, license for O365 enabled so now I only need a script sequence to run some commands to automatically do that. One important settings is from Computer Configuration GPO policy to enable "Silently configure OneDrive using the primary Windows account". This was for me in place before but was missing the part below to really run the setup and make sure modern authentication was enabled for OneDrive within the user profile (HKEY_CURRENT_USER)
Create new CMD file below and make sure it added to RunOnce
- I am using SCCM task sequence to add this to the default profile registers and place the CMD locally on the computer
- This file can also be executed manually or through logon script
OneDrive-Configuration.cmd
%localappdata%\Microsoft\OneDrive\Update\OneDriveSetup.exe taskkill /f /im OneDrive.exe reg add HKCU\Software\Microsoft\OneDrive /v EnableADAL /t REG_DWORD /d 1 /f "%localappdata%\Microsoft\OneDrive\OneDrive.exe"
Setup starts to initialize OneDrive for the user, kills the current OneDrive.exe process, sets the ADAL for modern authentication and starts OneDrive again.
Final end result :). OneDrive is configured and synced.
Rob
This is a nice solution but I just descovered a giant problem with this solution for Shared devices.
Every other user than the primary user gets the OneDrive of the Primary user of the device connected. This, as you can imagine, is a major issue.
So for shared devices this is something to think about when you configure this option.
Ps.: the option is now also available from the Administrative Templates (preview)
Darell
Now I am going to do my breakfast, after having my breakfast coming over aain to
read more news.
ignition poker bonus
An impressive share! I have just forwarded this onto a friend who waas conducting a little homework on this.
And hee actually ordered me lunch becuse
I found it for him… lol. So allow me to reword this….
Thanks for the meal!! But yeah,thanx for
spending the time to talk about thhis subject here on your blog.
aj
thanks for the post,
I tried the same exact method and itdidnt work for me.
does it need to be azure Ad?
ours is onprem.
any suggestion?
Regards
apartment complexes
I precisely needed to thank you very much once again.
I am not sure the things that I would have taken care of in the absence of the actual
creative ideas contributed by you concerning this industry.
It previously was the frustrating setting in my circumstances, nevertheless seeing the specialized style you handled the
issue forced me to jump for joy. Now i am thankful for your
information as well as hope you really know what an amazing job you are always putting in training the
others using your web page. I know that you haven’t encountered all
of us.
apartments san antonio,
I visited a lot of website but I think this one has something special in it.
69.16.224.147
Ion Casino
Ion casino is a trustworthy and best on the internet casino site through 2010 which
has dished up millions of gamers in Asia. Ion casino
or also referred to as Ionclub is the top ranking choice site because
this provides the greatest experience for online gambling players in Indonesia.
With an official license to run, this provider ensures that players make bets
without chance, credibility and can be trusted.
Lensamovie
Watch the Best Movie of All Time
What video do you want in order to watch today?
Sniper films may be required upon your list. This is usually the most fun shooting battle,
where every sniper action is always interesting to watch.