Hello,
Thank you for posting in Q&A forum.
We recommend that you use Migration Manager (part of the Microsoft 365 admin center) to migrate from file shares to OneDrive.
By using Migration Manager to migrate file shares, you can centrally connect to servers, create tasks, and automatically load balance migration tasks. Refer to the following link: Migrate file shares to SharePoint and OneDrive - Migrate to Microsoft 365 | Microsoft Learn
It guides you through the steps to migrate file shares, including setting up agents, creating tasks, and migrating to Microsoft 365.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.