SharePoint Online MD5 Checksum

%3CLINGO-SUB%20id%3D%22lingo-sub-124880%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20MD5%20Checksum%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124880%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20written%20a%20PnP-PowerShell%20script%20to%20migrate%20network%20file%20shares%20and%20local%20drives%20to%20SharePoint%20Online%2C%20the%20script%20is%20absolutely%20gorgeous%2C%20it%20preserves%20metadata%2C%20maps%20users%2C%20creates%20and%20fill%20out%20Document%20Sets%20and%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20only%20things%20I've%20struggled%20and%20gave%20up%20after%20failing%20so%20many%20times%20is%20the%20MD5%20checksum%20for%20the%20uploaded%20files%20on%20SharePoint%20Online%2C%20in%20the%20old%20days%20for%20classic%20SP%20you%20could%20easily%20achieve%20but%20with%20the%20limited%20ability%20in%20the%20PnP%20cmdlets%20I%20can't%20get%20this%20done%2C%20maybe%20it%20is%20my%20lack%20of%20experience%20and%20not%20the%20other%20way%20around%20but%20the%20documentation%20for%20PnP%20isn't%20the%20best%20and%20there%20are%20no%20many%20examples%20out%20there%20to%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20hoping%20somebody%20has%20figured%20this%20out%20and%20has%20some%20working%20example%20of%20performing%20the%20MD5%20checksum%2C%20any%20suggestions%20or%20ideas%20are%20warmly%20welcomed!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I've written a PnP-PowerShell script to migrate network file shares and local drives to SharePoint Online, the script is absolutely gorgeous, it preserves metadata, maps users, creates and fill out Document Sets and etc.

 

The only things I've struggled and gave up after failing so many times is the MD5 checksum for the uploaded files on SharePoint Online, in the old days for classic SP you could easily achieve but with the limited ability in the PnP cmdlets I can't get this done, maybe it is my lack of experience and not the other way around but the documentation for PnP isn't the best and there are no many examples out there to help.

 

I'm hoping somebody has figured this out and has some working example of performing the MD5 checksum, any suggestions or ideas are warmly welcomed!

2 Replies

@Alex Gonsales Did you get solution for this..?

@Alex Gonsales  Once the files are moved to SP Online the metadata changes, the chksum also fails, not sure if its becaues of metadata change the reason, however its is observed that, PDF files metadata is not changed they are digitally secured files.

You may need to download the files from SP Online and then do a chksum comparison. some files(PDF /zips) are digitally locked and the chksum will match but not Excel /word etc. etc..