When you add a OneDrive for Business shared library to your managed Windows PC, the sync status often shows “Pending” indefinitely. This means OneDrive has not started downloading any files from the team site or SharePoint document library. The root cause is usually a combination of tenant-level sync restrictions, group policy blocks, or corrupted OneDrive cache files on a corporate-managed device. This article explains why the pending state occurs and provides step-by-step fixes that work on Windows PCs joined to a domain or managed with Microsoft Intune.
Key Takeaways: Fix a Stuck Pending Sync for Shared Libraries
- OneDrive Settings > Account > Unlink this PC: Resets the sync relationship and clears stuck pending states for all libraries.
- Registry key HKCU\Software\Microsoft\OneDrive\Accounts\Business1: Deleting this key removes corrupted account data that causes pending status.
- Microsoft 365 admin center > SharePoint > Sharing: Verify that sync is allowed for external users and that file type restrictions are not blocking the library.
Why OneDrive Shared Library Sync Stays Pending on Managed PCs
When you click “Sync” on a SharePoint document library or Teams file tab, OneDrive creates a local sync folder and begins enumerating files. If the status remains “Pending” for more than 15 minutes, the sync engine has not received the file list from the server. On managed Windows PCs, three factors commonly cause this:
Tenant sync policies. Your organization might block sync for specific site collections or require device compliance checks. The Microsoft 365 admin center has settings under SharePoint > Access control that can disable sync for unmanaged devices or block syncing of certain file types.
Group Policy Objects (GPO) or Intune configuration profiles. IT administrators often deploy policies that restrict OneDrive to sync only work or school accounts, disable Known Folder Move, or limit the number of syncing libraries. A policy that blocks “Sync SharePoint files” will cause any shared library to stay pending.
Corrupted local sync cache. OneDrive stores metadata about each library in a local database. If this database becomes corrupted after a network interruption or a forced shutdown, the sync engine cannot process the shared library and shows pending indefinitely.
Steps to Resolve Pending Sync for a Shared Library
Follow these steps in order. Test the sync status after each step before moving to the next.
- Verify the library is not restricted by your IT admin
Open a web browser and sign in to the SharePoint site that hosts the library. Navigate to the library and click the Sync button. If you see a message that says “Sync is disabled by your administrator,” contact your help desk. Otherwise, proceed to the next step. - Unlink and relink your OneDrive account
Right-click the OneDrive cloud icon in the system tray and select Settings. Go to the Account tab and click Unlink this PC. Confirm the unlink. Restart the computer. After the restart, sign in to OneDrive again with your work or school account. Re-add the shared library by clicking Sync from the SharePoint site. - Clear the OneDrive sync cache
Press Windows key + R, type%localappdata%\Microsoft\OneDrive\settings\Business1, and press Enter. Delete all files and folders inside this folder. Do not delete the Business1 folder itself. Then press Windows key + R, type%localappdata%\Microsoft\OneDrive\logs\Business1, and delete the contents. Restart OneDrive by running%localappdata%\Microsoft\OneDrive\OneDrive.exefrom the Run dialog. - Reset OneDrive completely
Press Windows key + R, type%localappdata%\Microsoft\OneDrive\OneDrive.exe /reset, and press Enter. Wait 30 seconds. If OneDrive does not restart automatically, run%localappdata%\Microsoft\OneDrive\OneDrive.exeagain. After the reset, sign in and re-add the shared library. - Check for conflicting Group Policies
Open Command Prompt as Administrator and rungpresult /h C:\gpresult.html. Open the generated HTML file and search for “OneDrive.” Look for policies that setDisableFileSyncorDisableLibrariesSyncto Enabled. If found, ask your IT admin to change the policy to Not Configured or Disabled. - Verify the library URL is not blocked by the web proxy
Open Internet Options (inetcpl.cpl) > Connections > LAN Settings. If a proxy server is configured, ensure thatsharepoint.comandfiles.1drv.comare added to the proxy bypass list. Contact your network team if you cannot modify these settings.
If OneDrive Still Shows Pending After the Main Fix
OneDrive shows pending only for one specific library
Open the SharePoint library in a web browser and check if the library has custom metadata columns or required fields. OneDrive cannot sync libraries that contain certain column types like Lookup, Managed Metadata, or Hyperlink. Remove those columns from the library view or ask the site owner to simplify the library schema.
OneDrive shows pending for all shared libraries
This indicates a broader issue with the sync engine or the network. Run the Microsoft Support and Recovery Assistant (SaRA) for Office 365. Select OneDrive for Business > I need help syncing files. The tool will diagnose and fix common sync problems automatically.
OneDrive shows pending after a Windows update
Some Windows updates change the OneDrive service startup type. Press Windows key + R, type services.msc, and press Enter. Locate the service named “OneDrive Updater Task” or “OneDrive Sync Engine.” Ensure the startup type is set to Automatic and the service is running. If not, right-click the service, select Properties, change the startup type to Automatic, and click Start.
OneDrive Sync Modes: Files On-Demand vs Always Keep on This Device
| Item | Files On-Demand | Always Keep on This Device |
|---|---|---|
| Description | Files appear in File Explorer but are downloaded only when opened | All files in the library are downloaded to the local hard drive |
| Disk space used | Minimal — only metadata and thumbnail cache | Full file size for every file in the library |
| Offline access | Requires prior open to make a file available offline | All files are available offline automatically |
| Sync performance | Faster initial sync — only metadata is transferred | Slower initial sync — all file content is transferred |
| Best for | Large libraries with many files or limited disk space | Libraries you access daily and need offline reliability |
If a shared library stays pending, Files On-Demand might be disabled by a group policy. Check the registry key HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive\DisableFileSyncNGSC. If this DWORD is set to 1, enable Files On-Demand by setting it to 0 or removing the policy. Then restart OneDrive.
You can now diagnose and fix a shared library that stays pending on a managed Windows PC. Start by unlinking your account, then clear the cache, and check for group policies. If the problem persists, verify the library schema and run the Microsoft Support and Recovery Assistant. An advanced tip: use the OneDrive.exe /sharing command from an elevated Command Prompt to regenerate the sync token for a specific library — this forces OneDrive to re-negotiate the sync relationship with SharePoint without unlinking the entire account.