Forum Discussion
OneDrive unlink a sharepoint site on its own
- May 22, 2025
Maybe you can Use OneDrive Group Policy to Prevent Auto-Unlinking.
You can apply this registry-based Group Policy to suppress auto-unsync behavior:
Policy Name: Prevent users from syncing libraries and folders OneDrive considers invalid
Registry Key:[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive]
"DisableLibraryUnlinking"=dword:00000001
This tells OneDrive not to unsync libraries automatically if they temporarily appear unavailable.
Deploy via GPO or Intune.
My answers are voluntary and without guarantee!
Hope this will help you.
Thank you for the answer.
Out of curiosity, where did you find such registry key?
I wonder why onedrive decide to unlink them in the first place!
I will try it
Where did that DisableLibraryUnlinking key come from?
Please have in mind that No official documentation supports DisableLibraryUnlinking.
That DisableLibraryUnlinking key did not come from official Microsoft documentation. I suggested it as a possible workaround based on how OneDrive typically uses registry-based policies to control behaviors. In other words, it was a hypothetical extension of the existing OneDrive policy model, not something Microsoft has formally published.
The behavior "OneDrive deleting the SyncRootManager key when it marks a library as unreachable" is real, and several administrators have reported the same issue (as far as I've observed in the various forums). So the frustration is shared!🙂
My answers are voluntary and without guarantee!