we want to migrate our sharepoint on-premises 2013 sit e to SharePoint online. and some document libraries contain very important documents to us. where these docuemnt libraries have minor and major versions enabled. now for the migration we are going to use a top rated migration tool named ShareGate. but as an additional verification step,to make sure everything have been migrated. i want to know if i can write power-shell script which can do these steps (for the on-premises + SharePoint online):-
- Inside the on-premises site, to run a power-shell script which loop through all the sub-sites inside a site collection, and display the number of unique minor and major versions for the documents inside the "SharedDocuments" docuemnt library.
- then after competing the migration to run a pnp script to show the result inside the migrated online sites.
for example let say i have an on-premises document library which have the follow files:-
- fileA. with versions= 0.1 + 0.2 + 1.0
- fileB. with versions= 0.1 + 0.2 + 0.11 + 1 +2
so the script should show final result for the document library as 8. can anyone advice on this?