Onedrive auto-login: not working when changing to different machine in domain

%3CLINGO-SUB%20id%3D%22lingo-sub-2651187%22%20slang%3D%22en-US%22%3EOnedrive%20auto-login%3A%20not%20working%20when%20changing%20to%20different%20machine%20in%20domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2651187%22%20slang%3D%22en-US%22%3E%3CBR%20%2F%3ESchool%20here.%20Onedrive%204B%2C%20Version%2021.139%20(64bit%2C%20installed%20per%20machine)%3CBR%20%2F%3EDomain%20hybrid%20AAD%20joined%3CBR%20%2F%3EUser%20profiles%20centrally%20stored%20on%20fileshare%3CBR%20%2F%3ETeachers%20and%20Students%20frequently%20change%20machines%2C%20and%20need%20to%20be%20signed%20in%20to%20Onedrive%20automatically%20without%20having%20to%20type%20mail%20adress..%3CBR%20%2F%3E%3CBR%20%2F%3EGPO%20for%20automatic%20sign%20in%20is%20in%20place.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20works%2C%20if%20in%20HKEY_CURRENT_USER%5CSOFTWARE%5CMicrosoft%5COneDrive%5C%3CBR%20%2F%3E%3CBR%20%2F%3Eresetting%20key%20SilentBusinessConfigCompleted%3D1%20to%200%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThen%2C%20after%20logging%20out%20and%20in%20again%2C%20Onedrive%20automatically%20logs%20user%20in%20with%20his%20windows%20credentials....%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20registry%2C%20a%20subkey%20ACCOUNTS%5CBUSINESS1%20is%20created%20in%20HKEY_CURRENT_USER%5CSOFTWARE%5CMicrosoft%5COneDrive%5C%3CBR%20%2F%3E%3CBR%20%2F%3Eand%20populated%20with%20dozens%20of%20values....%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20if%20user%20logs%20of%20from%20machine%201%20and%20logs%20into%20machine%202%20with%20his%20server-stored%20profile%20(NTUSER.dat%20on%20file-server)%2C%3CBR%20%2F%3E%3CBR%20%2F%3EOndrive%20no%20longer%20can%20log%20in%20automatically.....%20and%20the%20ACCOUNTS%5CBUSINESS1%20keys%20are%20mostly%20deleted...%20some%203%20or%204%20survive...%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20again%20setting%20SilentBusinessConfigCompleted%20back%20to%200%20%2C%20log%20off%2C%20log%20on%20....%20then%20it%20signs%20in%20automatically%20again%2C%20BUT%20ONLY%20on%20THIS%20MACHINE..%20and%20Business1%20is%20populated%20again..%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20suspicion%20is%2C%20this%20happens%20if%20for%20some%20reasons%20autologin%20fails..maybe%20if%20it%20is%20first%20login%20on%20another%20machine%2C%20maybe%20due%20to%20a%20timeout%20when%20first%20login%20takes%20too%20long%20creating%20local%20profile%3F%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20when%20logging%20off%2C%20and%20in%20again%20on%20A%20it%20is%20not%20connenting%20because%20Business1%20is%20not%20configured...%20As%20it%20comes%20from%20fileshare%20ntuser.dat%3CBR%20%2F%3E%3CBR%20%2F%3EThinking%20about%20a%20login%20Script%2C%20resetting%20Silentbusinessconfigcompleted%20back%20to%200%20on%20every%20login...%3CBR%20%2F%3E%3CBR%20%2F%3EIS%20THIS%20INTENDED%20BEHAVIOUR%3F%3F%3CBR%20%2F%3EThis%20would%20kill%20the%20using%20of%20Onedrive%20in%20a%20shared%20machine%20environment.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2651187%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

School here. Onedrive 4B, Version 21.139 (64bit, installed per machine)
Domain hybrid AAD joined
User profiles centrally stored on fileshare
Teachers and Students frequently change machines, and need to be signed in to Onedrive automatically without having to type mail adress..

GPO for automatic sign in is in place.

It works, if in HKEY_CURRENT_USER\SOFTWARE\Microsoft\OneDrive\

resetting key SilentBusinessConfigCompleted=1 to 0



Then, after logging out and in again, Onedrive automatically logs user in with his windows credentials....

In registry, a subkey ACCOUNTS\BUSINESS1 is created in HKEY_CURRENT_USER\SOFTWARE\Microsoft\OneDrive\

and populated with dozens of values....



Now if user logs of from machine 1 and logs into machine 2 with his server-stored profile (NTUSER.dat on file-server),

Ondrive no longer can log in automatically..... and the ACCOUNTS\BUSINESS1 keys are mostly deleted... some 3 or 4 survive...



When again setting SilentBusinessConfigCompleted back to 0 , log off, log on .... then it signs in automatically again, BUT ONLY on THIS MACHINE.. and Business1 is populated again..

My suspicion is, this happens if for some reasons autologin fails..maybe if it is first login on another machine, maybe due to a timeout when first login takes too long creating local profile?

Now when logging off, and in again on A it is not connenting because Business1 is not configured... As it comes from fileshare ntuser.dat

Thinking about a login Script, resetting Silentbusinessconfigcompleted back to 0 on every login...

IS THIS INTENDED BEHAVIOUR??
This would kill the using of Onedrive in a shared machine environment.
0 Replies