Forum Discussion
inframaster
May 14, 2025Copper Contributor
OneDrive unlink a sharepoint site on its own
Hello,
I admit, this is a weird one.
10 users have a sharepoint site synced to their computer, using onedrive "sync" feature.
Everything works fine.
Out of the blue, one of the users complains that the folder is not kept in sync; indeed there was no folder in sync in the onedrive settings. while we thought about a user mistake, all the other users started complaining about the same issue.
We gathered onedrive logs and parse them to deoffuscate the strings and we found out that onedrive reports the Library to be unreachable
LibraryErrorHandler::SendCoreMessageForUnreachableLibraries
this triggers the deletetion of the registry key that manages the sync
Removing unknown key: Software\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager\OneDrive\XXXXXXXXXXXXXXXXXX
Has anyone experienced this?
I reached out to our CSP and they told me they can't help since there is no active issue.
2 Replies
Sort By
- NikolinoDEGold Contributor
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.
- inframasterCopper Contributor
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