Update: new version of this script with GUI here 🙂
A well known issue when migrating to Office 365 (Sharepoint, Teams and Onedrive) is path length.
Recently, Microsoft increased the maximum path length in Sharepoint Online from 256 to 400 characters (total length of the URL). This causes issues when you use Office, because Office 2013, 2016 and 2019 do not support paths over 218 characters in length.*
To help you proactively identify files that exceed this limit I wrote a PowerShell script you can run:
- it can filter based on file type
- automatically finds and processes all sharepoint sites in your tenant
- automatically finds and processes all team sites in your tenant
- it can handle multi-factor authentication
It leans heavily on the great work done by the community around OfficePnP, all credits to the community for providing so much quality code for free!
*longer paths may still work, this is not a hard limit