I’ve been doing a migration project these past months to Sharepoint / Teams.
And boy does the tooling provided suck, I mean…Sharegate / AvePoint are supposed to be a market leaders right? Well, I can tell you it looks more like a cashcow to me, one that’s as good as ready for slaughter.
We wanted to know what cleanup needs to be done by individual teams, we wanted to show reports to them with actionable details, give them a good overview of WHERE in their folder structure to act, and we wanted to see how they were doing over time.
Lots of users also have macro’s….what happens to those? Do they survive a migration, or break? This tool actually tells you by DETECTING the macro’s, then READING them to see if they have external references
(e.g. other files or databases) and flagging them in the report.
It also tells you where inheritance was broken, so you may need to account for that in where to migrate a folder.
And last but not least, it detects duplicate files…helping you save $$$$$
So, here’s a super fast (multi threading) PowerShell solution you can use to generate the type of reporting shown below! Use this, your users / staff will thank you 🙂
https://github.com/jflieben/assortedFunctionsV2/blob/main/FileServerToSPO/PreMigrationReport.ps1




.\PreMigrationReport.ps1
cmdlet PreMigrationReport.ps1 at command pipeline position 1
Supply values for the following parameters:
RootPath: https://bdo365co.sharepoint.com/sites/CVIALCO
Title: CVIALCO
outputFolder: CVIALCO
Import-Module: C:\Users\WDAGUtilityAccount\Pictures\PreMigrationReport.ps1:30
Line |
30 | Import-Module ActiveDirectory
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The specified module ‘ActiveDirectory’ was not loaded because no valid module file was found in any module
| directory. It would be helpful to have step-by-step instructions and the requirements needed to achieve the same result. I think everything you upload is great.
Probably a stupid question but I get an error at line 696 regarding the “?” : $sizeCounts[$sz] = ($sizeCounts.ContainsKey($sz) ? $sizeCounts[ – Unexpected token ‘?’ in expression or statement.
Hi Jos,
Thank you for this very interesting tool!
I am seeing some issues going through directory structures on a first test on my local drive:
Discovering directories under ‘D:\OneDrive\ImageVault’…
Discovered 83 directories in 0s
Scanning files and permissions with 8 parallel workers…
Scanned 2 files across 83 directories in 0 min
There are 10.000+ files in that folder, but you need to dig deeper into the file structure, which he seems to not be doing…
Any idea why?
No warnings or errors whatsoever.