When you restart a managed Windows PC, OneDrive for Business may get stuck in a sync loop on a shared library. The sync status shows “Processing changes” or “Syncing” indefinitely, and the library never finishes syncing. This loop can occur because OneDrive retries the sync from the beginning each time the system starts, and a corrupt cache or conflicting policy prevents completion. This article explains why the loop happens and provides a step-by-step fix to break the cycle without losing your local data.
Key Takeaways: Fix Shared Library Sync Loop After Restart
- OneDrive Settings > Sync and backup > Manage backup: Disable and re-enable Known Folder Move to reset the sync relationship for shared libraries.
- OneDrive icon > Help & Settings > Pause syncing: Pause for 2 hours before restarting to allow the sync engine to flush pending changes.
- Run as administrator > Reset OneDrive: Use the
onedrive.exe /resetcommand to clear the cache without deleting local files.
Why Shared Library Sync Loops After a Restart
The loop occurs because OneDrive tries to re-sync the entire shared library from the server after a restart. If the local cache contains a stale or corrupt index file, the sync engine cannot reconcile the file list and restarts the sync process repeatedly. On managed Windows PCs, group policies may force a full sync on every boot, which amplifies the problem. The shared library uses a separate sync token from your personal OneDrive, and a mismatch between the cached token and the server token causes the loop.
Another common cause is the interaction between the OneDrive sync engine and Windows Fast Startup. Fast Startup saves the system state to a hibernation file, and when the PC resumes, OneDrive may not properly reinitialize its sync threads for shared libraries. This results in a partial sync that never completes, triggering a restart of the sync process.
How the Sync Loop Manifests
You will see the OneDrive icon in the system tray showing a spinning blue circle or a yellow warning triangle. Opening the OneDrive activity center shows the shared library stuck at “Processing changes” or “Syncing X of Y items” with no progress. The loop may last for hours or days, and restarting the PC only resets the count to zero.
Steps to Break the Sync Loop on a Managed Windows PC
Perform these steps in order. Each step addresses a different layer of the loop. Do not skip any step unless instructed.
- Pause OneDrive Sync
Right-click the OneDrive cloud icon in the system tray. Select Help & Settings > Pause syncing and choose 2 hours. This stops all sync activity and allows the engine to flush pending file operations. Wait 30 seconds before proceeding. - Disable Fast Startup Temporarily
Open Control Panel > Power Options > Choose what the power buttons do. Click Change settings that are currently unavailable. Uncheck Turn on fast startup (recommended). Click Save changes. Restart the PC. This ensures OneDrive initializes its sync threads correctly on boot. - Remove and Re-add the Shared Library
After the restart, right-click the OneDrive icon and select Settings. Go to the Account tab. Under Shared libraries, click the library that is looping and select Stop sync. Confirm the action. Wait 1 minute. Click Add a shared library, search for the same library, and add it back. This forces OneDrive to download a fresh sync token and rebuild the cache. - Run the OneDrive Reset Command
Press Windows key + R, typeonedrive.exe /reset, and press Enter. A command prompt window opens briefly. Wait 2 minutes for the reset to complete. OneDrive will restart automatically. If it does not, press Windows key + R again and type%localappdata%\Microsoft\OneDrive\onedrive.exeto launch it manually. - Re-enable Fast Startup (Optional)
Once the library syncs successfully, you can re-enable Fast Startup if desired. Open Control Panel > Power Options > Choose what the power buttons do. Click Change settings that are currently unavailable. Check Turn on fast startup (recommended). Click Save changes.
If OneDrive Still Loops After the Main Fix
If the loop persists after following the steps above, check these additional failure points.
OneDrive Shows “Couldn’t sync” with Error 0x8007017C
This error indicates a file name or path exceeds the Windows maximum path length of 260 characters. Open File Explorer and navigate to the shared library folder. Look for files with very long names or deep subfolder structures. Rename or move those files to a shorter path. Right-click the OneDrive icon and select Resume syncing.
Group Policy Forces a Full Sync on Every Boot
Your IT administrator may have configured a group policy that sets Set the sync mode for OneDrive to Always keep on this device. This forces a full download of all files in the shared library each time the PC starts. Contact your IT admin and request a change to Files On-Demand mode. Until then, you can temporarily bypass the policy by pausing sync for 2 hours before restarting, as described in step 1.
Corrupt OneDrive Cache in AppData
If the reset command did not help, manually delete the cache folder. Close OneDrive completely. Press Ctrl + Shift + Esc to open Task Manager. End all processes named Microsoft OneDrive. Press Windows key + R, type %localappdata%\Microsoft\OneDrive\settings, and press Enter. Delete all files and folders inside the settings folder. Restart OneDrive. It will rebuild the cache from scratch.
| Item | Remove and Re-add Library | OneDrive Reset Command |
|---|---|---|
| Effect on local files | Files remain on disk until re-added, then resync | Files remain on disk, cache is cleared |
| Time to complete | 5-10 minutes | 2-5 minutes |
| Requires admin rights | No | Yes |
| Resolves cache corruption | Partially | Fully |
| Resolves token mismatch | Yes | No |
The remove-and-re-add method is faster for token issues, while the reset command is more thorough for cache problems. Use both in sequence if the loop continues.
You can now break the sync loop for shared libraries on your managed Windows PC. After applying the steps, the library should sync without restarting. Next, check the OneDrive activity center to confirm all files are current. To prevent future loops, disable Fast Startup permanently if you manage your own PC, or ask your IT admin to set Files On-Demand as the default sync mode.