A Microsoft file hosting and synchronization service.
Hi gernophil,
Welcome to the Microsoft Q&A forum.
Based on your description, I understand that OneDrive for Business loses its connection to the local sync folder every time you restart your Mac and then automatically creates an additional folder with the suffix (2).
In addition, it is possible that your credentials or authentication state are still stored in the macOS Keychain or other Microsoft authentication components. As a result, your sign-in information may still be retained even after you run the script.
In this case, please try the following steps:
- From Spotlight search, type "keychain" and select Keychain Access. If it's not visible in Spotlight, go to the Utilities folder and open Keychain Access from there.
- Search for "OneDrive."
- Delete OneDrive Cached Credential.
The steps to delete Keychains may vary. As an alternative, choose Window > Keychain Access, then choose File > Delete Keychain [OneDrive/Office/MS] and click Delete References.
You can refer to the following documentation:
Fix OneDrive sync problems on Mac | Microsoft Support
After clearing the saved OneDrive credentials on your Mac, please sign in to OneDrive again and check whether the issue still occurs.
If the issue persists after completing these steps, please feel free to share the results with me. I will continue to assist you.
If the answer is helpful, please click "Yes" and kindly 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.