Finding files in Sharepoint Online or Teams that exceed 218 path length

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

Find get-filesWithLongPathsInOffice365.ps1 on GitLab

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

OnedriveMapper v3.18 released!

Version 3.18 of OneDriveMapperĀ has beenĀ released

  • No longer forces PowerShell to use TLS 1.2 by default, but uses opportunistic TLS (if 1.2 doesn’t work, it’ll fall back to 1.1 or 1.0)
  • Auto pick an available driveletter if you set the driveletter of a mapping to ‘autodetect’
  • Recursive group member search (vs just 1 level deep) when mapping based on groups
  • Better retries/error handling when looking up favorited sites

Get the new versionĀ here

SAP SuccessFactors to Active Directory Sync (updated users)

For a customer that is using SuccessFactors to manage their employees / contractees, I wrote a script that will update the AD accounts of any person that is updated in SuccessFactors.

I expect you’ll have working knowledge on how to configure SF PerformanceManager to export the users you wish to update to a CSV file on the sFTP server SF provides for you.

With that, you should be able to configure the script. It’ll basically map any field you export to any field in Active Directory you wish. In some cases, such as the Manager field, special logic has been added to the script to look up the user’s manager. For other special fields you may have to write your own logic.

If you wish, the script will provide you with a full report in your email, for example:

Get it @ Gitlab directly:Ā  https://gitlab.com/Lieben/assortedFunctions/tree/master/SuccessFactors%20and%20SAP