PowerShell module designed to scan user folders located in a network file share using Folder Redirection. This can assist when migrating user files from Folder Redirection to OneDrive and find any paths that would exceed the 247 path limit imposed on the OneDrive desktop client.
- Download the PowerShell module from GitHub
- Extract the zip folder
- Open PowerShell and navigate to the location of the module.
-
Import-Module C:\onedrive-longPath-prep\FolderRedirectionPaths.psm1`
Note
Remove -UserName
parameter to scan all users.
Warning
This could take a long time depending on the amount of users.
Test-FolderRedirectionPaths -RootPath "\\server\home\" -TenantName "<M365TenantName>" -UserName @("user1", "user2") -ShowProgress -Summary | Format-Table
Test-FolderRedirectionPaths -RootPath "\\server\home\" -TenantName "<M365TenantName>" -UserName "user1" -ShowProgress | Where-Object {$_.RequiresAction -eq $True} | Export-Csv -NoTypeInformation "results.csv"
Test-FolderRedirectionPaths -RootPath "\\server\home\" -TenantName "<M365TenantName>" -UserName @("user1", "user2") -ShowProgress | Where-Object {$_.RequiresAction -eq $True} | Export-Csv -NoTypeInformation "results.csv"