OneDrive for Business shared library sync stays pending for managed Windows PCs: Fix Guide
🔍 WiseChecker

OneDrive for Business shared library sync stays pending for managed Windows PCs: Fix Guide

When you add a shared library in OneDrive for Business on a managed Windows PC, the sync status often stays on Pending and never completes. This happens because group policies or registry settings block the sync of shared libraries, even when personal OneDrive sync works correctly. This article explains the exact policies that cause this behavior and provides the steps to fix it for managed devices.

Shared libraries include SharePoint document libraries and team site document libraries that other users have shared with you. When sync stays pending, you cannot access offline copies of the files, and the OneDrive icon shows a blue circle with two arrows. The fix involves changing specific administrative templates and registry values that control which libraries OneDrive can sync.

This guide is written for IT administrators who manage Windows 10 or Windows 11 devices with Microsoft 365. You will learn which policies to check, how to modify them, and how to force OneDrive to apply the new settings immediately.

Key Takeaways: Fixing Pending Shared Library Sync on Managed PCs

  • Group Policy: Computer Configuration > Administrative Templates > OneDrive > Prevent users from syncing personal OneDrive accounts: If enabled, it also blocks shared libraries in some configurations. Disable it or set it to Not Configured.
  • Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive\DisableLibrariesSync: When set to 1, shared libraries cannot sync. Delete or set to 0.
  • OneDrive restart after policy change: Run taskkill /f /im OneDrive.exe then launch OneDrive again to apply new policies without a full reboot.

ADVERTISEMENT

Why Shared Library Sync Stays Pending on Managed Windows PCs

When OneDrive for Business is deployed on a managed Windows computer, the IT department often applies group policies to control sync behavior. The most common policies that interfere with shared library sync are part of the OneDrive administrative template files (ADMX/ADML). These templates are installed when you deploy the OneDrive sync app via Microsoft 365 Apps or the standalone installer.

The specific policy that blocks shared library sync is named Prevent users from syncing personal OneDrive accounts. Despite its name, this policy also stops sync of any library that is not the user’s own OneDrive. When this policy is enabled, the user can sync their personal OneDrive but any shared SharePoint library stays in Pending state. The OneDrive sync engine reads the policy at startup and refuses to add libraries that are not explicitly allowed.

Another cause is the registry value DisableLibrariesSync, which can be set independently of group policies. This key is sometimes created by third-party management tools or by older OneDrive configuration scripts. When set to 1, the sync engine ignores all shared libraries even if the group policy is not configured.

A third less common cause is the OneDrive sync app version itself. Versions older than 19.192 have known bugs that cause shared libraries to remain pending indefinitely. Managed PCs that receive OneDrive updates through Microsoft 365 Apps may lag behind the current version if update channels are restricted.

Steps to Fix Shared Library Sync Pending on Managed PCs

Follow these steps in order. You need administrative rights on the Windows PC to change policies and registry keys.

  1. Check the current OneDrive policy settings
    Open the Local Group Policy Editor by pressing Win + R, typing gpedit.msc, and pressing Enter. Navigate to Computer Configuration > Administrative Templates > OneDrive. Look for the policy Prevent users from syncing personal OneDrive accounts. If the state is Enabled, double-click it and set it to Not Configured or Disabled. Click OK.
  2. Verify the registry key for library sync
    Open Registry Editor by pressing Win + R, typing regedit, and pressing Enter. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive. Look for a DWORD value named DisableLibrariesSync. If it exists and its value is 1, right-click it and select Delete. If you prefer to keep the key, double-click it and change the value to 0. Close Registry Editor.
  3. Restart the OneDrive sync app
    Press Ctrl + Shift + Esc to open Task Manager. Find Microsoft OneDrive in the list, right-click it, and select End task. Alternatively, open a command prompt as administrator and run taskkill /f /im OneDrive.exe. Then launch OneDrive from the Start menu or by running %localappdata%\Microsoft\OneDrive\OneDrive.exe. Sign in if prompted.
  4. Re-add the shared library
    Right-click the OneDrive cloud icon in the system tray and select Settings. Go to the Account tab. Under Shared libraries, click Add a library. Select the SharePoint library that was stuck on Pending and click Add. Wait 30 seconds and check the sync status. It should now show Syncing or a green check mark.
  5. Update OneDrive to the latest version
    If the library still stays pending, update OneDrive. Download the latest OneDrive sync app from the Microsoft 365 admin center or from onedrive.com/download. Run the installer. No restart is needed. After the update, repeat step 4.

ADVERTISEMENT

If OneDrive Shared Library Sync Still Stays Pending

OneDrive shows error code 0x80070194

This error indicates that the sync engine cannot read the library metadata. The most common fix is to clear the OneDrive cache. Exit OneDrive using the taskkill command from step 3 above. Then open File Explorer and navigate to %localappdata%\Microsoft\OneDrive\settings\Business1. Delete all files and folders inside that directory. Restart OneDrive and re-add the library.

Shared library sync works on some PCs but not others

This inconsistency usually points to a per-machine policy difference. Compare the group policy results on a working PC with the broken PC. Run gpresult /h report.html on both machines and open the HTML report. Look for the OneDrive section. If the policy Prevent users from syncing personal OneDrive accounts is set to Enabled only on the broken PC, that is the cause.

The library shows as synced but files are missing

When the library appears synced but files are not visible offline, the issue is with Files On-Demand settings. Open OneDrive Settings > Sync and backup > Advanced settings. Under Files On-Demand, make sure the option Save space and download files as you use them is selected. If it is already selected, toggle it off, click OK, then toggle it back on.

Files On-Demand vs Always Keep on This Device for Shared Libraries

Item Files On-Demand Always Keep on This Device
Description Files appear in File Explorer but download only when opened All files in the selected folder are downloaded to the local hard drive
Disk space usage Minimal – only thumbnail and metadata Full – entire file content is stored locally
Offline access Only files opened recently are available offline All files are available offline at all times
Sync pending risk Lower – metadata sync is faster Higher – large libraries may cause pending state during initial download
Best for Users with limited disk space or many shared libraries Users who work offline frequently on managed laptops

After applying the policy fixes, you can now add shared libraries to OneDrive and sync them to your managed Windows PC without the pending status. Test the fix by adding a library that previously stayed pending. If you manage multiple devices, consider deploying the policy changes through Group Policy Management Console to avoid repeating the steps manually. For advanced control, use the OneDrive ADMX template to set DisableLibrariesSync to 0 across your entire organization.

ADVERTISEMENT