Powershell script to generate metadata from SharePoint Online site.
This includes
- FileName
- MD5 checksum
- URL
- CreatedDate
- ModifiedDate
- MimeType
It needs the SharePoint Online Management Tool to be installed - https://www.microsoft.com/en-gb/download/details.aspx?id=35588
You need to adjust the SharePoint URL variable to whatever site you want to run the script over, it will ask you to authenticate with appropriate login details.
Based on script by Salaudeen Rajack - https://www.sharepointdiary.com/2019/04/SharePoint-online-find-duplicate-files-using-powershell.html#ixzz5vkGh8tXq