Create a csv
\\fileserver.azure365pro.com\h$\HomeDrives\user1.lastname,,,https://azure365pro-my.sharepoint.com/personal/user1.lastname_azure365pro_com,Documents,HomeDrive \\fileserver.azure365pro.com\h$\HomeDrives\user2.lastname,,,https://azure365pro-my.sharepoint.com/personal/user2.lastname_azure365pro_com,Documents,HomeDrive \\fileserver.azure365pro.com\h$\HomeDrives\user3.lastname,,,https://azure365pro-my.sharepoint.com/personal/user3.lastname_azure365pro_com,Documents,HomeDrive
To export all One Drive Urls
Connect-SPOService
Get-SPOSite -IncludePersonalSite $true -Limit All -Template SPSPERS#10 | Select-Object url,owner | Export-Csv onedriveurls.csv
If its a green field environment and user never logged on to OneDrive yet. you can populate the URLs using Request-SPOPersonalSite
$users = Get-Content -path "OneUsers.txt" Request-SPOPersonalSite -UserEmails $users
Run the SharePoint Migration Tool – You will need global administrator access to ingest data into users one drive.
JSON or CSV file for bulk migration
Choose the file
Review migration
Now users can access their “Home Drive” Data from their ONe Drive