Thanks for all the tips so far. I may have found the solution. As Arnie said:
- Close all running OneDrive and Sharepoint processes. I did this from TaskManager because although I can see OneDrive and quit it from toolbar, I can only quit SharePoint in TM
- Go to C:\Users\PROFILENAME\AppData\Local\Microsoft\OneDrive\settings
- There should be folders named Business and Personal. Business will have a digit at the end. Delete the BusinessX folder that corresponds to the workplace account you've signed out of/disconnected from your PC (for me this was Business1 and I kept Business2 which is a current workplace MS account)
Then:
- Also go to C:\Users\PROFILENAME\AppData\Local\Microsoft\OneDrive\ListSync **** and delete the BusinessX account folder there too (again Business1 for me, depends for you...)
- Restart computer which will restart OneDrive for both personal and business drives.
Fingers crossed -- and this has worked for me with two restarts to test.
I guess it was the ListSync folder that contained the commands that set off the notification?
I followed the above steps, and today the "Sign in to turn on offline..." message came back again.
I've also gone through and removed all the "business1" entries from the registry.
Such a frustrating issue. At least once a week this issue happens, asking me to sign in to a business account for a company I haven't worked at in over 18 months.
I noticed in the directory C:\Program Files\Microsoft OneDrive that it creates subfolders with names like "23.048.0305.0002". Inside here it seems to download the latest version of OneDrive. It includes "Microsoft.SharePoint.exe" - this is the only place where SharePoint exists in my system.
I think this issue is entirely on the Microsoft server side. Every time OneDrive updates itself, something on the server side tells it to include the business account, and thus installs SharePoint and runs that at the same time.