

Sync Pending is a OneDrive sync problem happening when you use OneDrive to synchronize files. Can anyone let me know how to handle this issue? Thank you! I found a similar question and its relevant answers from the moderator and tried to apply the solution but it did not work at all. Some folders keep showing their status of being "Sync Pending" even though the One Drive icon on the task bar indicates "Up to date" status. Hi, I have had a problem with syncing in One Drive.

$listid = (get-pnplist -Web $web -Identity $listtitle).id.How to handle OneDrive sync pending issue? $upn = $env:USERPROFILE + '\' + $tenantName + '\' + "$webtitle - $listtitle" To avoid this, first I got the Ids using PnP and then added the Ids to the mapping script that the users can run without PnP. Technically it can be included in the same script but then each user will need to have PnP modules installed. You also need to replace siteId, webId and listId. To use this script, you need to replace the following variable values with your data: webURL, webTitle, listTitle, tenantName Once the folder has been created, it is safe to move on to the next library. So I added a pause / sleep in the script that will check if the folder has been created for that library on the user’s machine. OneDrive cannot map more than one library at a time (tried and failed). The script below maps each library listed one at a time.

The script will sync all SharePoint libraries needed for that user. Through GPO, schedule a task that will copy and execute a PowerShell script when the user logs on. It was deemed too cumbersome for users to sync libraries themselves. Once the content migrated to SharePoint libraries, the content needed to be synced to OneDrive so it displays as a folder in the user’s file explorer. The organization was not ready to embrace SharePoint in all it’s awesomeness and wanted to continue using their SharePoint like Share Drives. Recently, I was completed a migration moving data from Share Drives to SharePoint.
