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

Reinhard Sacher 6 Reputation points
2021-08-16T06:33:00.153+00:00

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.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,135 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viki Ji_MSFT 4,421 Reputation points
    2021-08-17T05:37:08.767+00:00

    @Reinhard Sacher ,
    Welcome to Q&A forum!

    I noticed that you posted the same thread in Microsoft Answers Community and Microsoft Tech Community, please pay close attention to them.

    Usually, reset SilentBusinessConfigCompleted back to 0, or run the following command, you can auto-sing in to OneDrive when you sign in to Windows.

    reg delete HKCU\Software\Microsoft\OneDrive /v SilentBusinessConfigCompleted /f  
    

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

    < Per my research, there may not be a script that can reset it to 0 automatically.

    Since I know very little about NTUSER.dat on the file server, I cannot determine the cause of the issue currently. I will continue to research this thread and if there are any updates, I will update here.

    Thanks for your understanding!
    Any updates, please let me know.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.

  2. Reinhard Sacher 6 Reputation points
    2021-08-18T07:56:54.777+00:00

    Have been suggested to post my original in this forum, hence the duplicate.

    I think, I got it solved by adding a reg-setting "silentbusiness..." = 0 in the User part of a GPO which also sets Autologin etc .. for Onedrive.

    so on every login, it looks to the machine as if User never logged in and performs automatic setup and login...
    A workaround, at best....

    1 person found this answer helpful.