Apr 26 2021 07:28 AM - edited Apr 26 2021 07:29 AM
Wasn't sure how to write the subject line. My OneDrive policies are setup to auto-login the user and then configure known folders. That all works great on first login.
Then, when you logout and login again, I immediately get the "Onedrive isn't signed in" error.
All one has to do at that point is click "Ok" and it will log them in. But I cannot seem to understand why this happens. It is really annoying since scripts need to run to sync sharepoint shares and lots of times this dialog goes unseen and so the scripts don't run. It is also not a user-friendly type of thing.
This ONLY happens with the second login. Each subsequent is fine.
My settings are this:
I'm not sure what could be causing this to happen. Other than, perhaps MFA? I set the computers up on a trusted network and the logout/login is also on a trusted network.
Not even sure where to start looking to solve this.
Apr 26 2021 11:07 PM
Apr 27 2021 06:01 AM
Apr 27 2021 07:27 AM
Apr 28 2021 05:51 AM
Apr 29 2021 12:49 AM
May 07 2021 01:33 PM
Hi there... I've just exactly the same issue, OneDrive syncs first time, then after subsequent reboots it throws the "not signed in" error... as soon as you click ok, it shows the "signing in" and works fine afterwards...
Did you had any luck solving this?
May 07 2021 01:35 PM
@FABKI No, not at all. In fact, I have another Tenant that I recently got setup with Intune and it happens to them too!
It is pretty frustrating.
May 07 2021 11:52 PM
May 10 2021 11:59 AM
May 10 2021 11:44 PM
May 11 2021 12:16 AM - edited May 11 2021 01:11 AM
@Rudy_Ooms_MVP hey...
In my case this is just the OneDrive that comes by default with the 20h2 image for Windows 10 Pro x64, though it does install itself in ProgramFiles(x86). I'm also provisioning the devices with Autopilot, AD joined if that makes a difference. OneDrive version: 2021 (build 21.073.0411.0002) - this is after the sync message is given... I`ll run the reset again to see if is different before that.
EDIT: the OneDrive version immediately after provisioning is the same as after a reboot, no change there. In fact, is not even the reboot that triggers this, just closing OneDrive first time, and reopening, it will trigger the "not signed in" popup, but only this one time. Further close/reopen OneDrive (or reboots) no longer triggers the popup.
May 11 2021 01:39 AM - edited May 11 2021 04:24 AM
Hi,
There are also no duplicate credentials configured in the credential manager/Windows credentials? Like Adal or SSPI?
Are you using the old school MFA enforcement (is it disabled for the users) or conditional access?
Have you also taken a look at this Microsoft Doc? It's also saying you could try to add the enableadal key
Silently configure user accounts - OneDrive | Microsoft Docs
You could try this one. If it doesn't fix it , it will definitely not break it? 🙂
Office applications periodically prompt for credentials - Office 365 | Microsoft Docs
May 11 2021 06:01 AM
May 11 2021 07:28 AM
What happens when you make sure when the device is becoming azure ad joined, onedrive is being installed ?Create a new intunewin app and make sure it is set as required in the ESP?
May 11 2021 07:46 AM
@Rudy_Ooms_MVP The device gets joined part of the autopilot, and OneDrive is already included with the Windows image... so it already gets installed as part of that, and also "properly" configuring as per Intune CSPs. Not sure how adding it as required install would help when is already installing... ?
May 11 2021 11:34 PM
May 27 2021 06:39 AM
Hi,
Just wondering but did you manage to solve it?
Another solution you could try is to disable the automatic startup
Or
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /f /v "OneDrive"
And check what happens when you open onedrive manually? (when this works you could create a scheduled task to start onedrive with a delay)
May 27 2021 06:49 AM
@Rudy_Ooms_MVP I haven't been able to solve it. But I think someone mentioned, and I tried it, that if on the first login, if I quit OneDrive manually and re-load it manually, the problem happens. But then subsequent logins have no problem just like normal.
So, it really has to do with the first time it loads and the second. I don't know what changes between them.
I will say this. I got a computer in and it had Version 21H1 on it (All my others are 20H2) and that one DOESN'T have the second-load error with OneDrive. I have not tried upgrading another computer yet to fully test it.
May 27 2021 06:51 AM
I still get the same issue on clean installs with 21H1 too, maybe you've got over a glitch in the matrix with that one?