We are migrating all the permission of selected contents(files and folders) from the OneDrive to SharePoint Online, if number of files are less than 100, script migrate it's in half an hour, however, if the count of files more than 5000 then it will takes around 10 hours, which is effecting the performance of migration.
Kindly find below the portion of code for getting the permissions.
Instantly share code, notes, and snippets. Parallel versus Serial ForEach Loop using Powershell Workflow You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or window. Reload to refresh your session. Reload to refresh your session.