SharePoint Online | Export File Hashes

Riaan Smith 0 Reputation points

Good day,
I need assistance with a PowerShell Script to export file names, last modified date, file size, and file hash, from all libraries in a specific SharePoint site.
Hoping someone could assist me, as I've searched far and wide, and could not get something that works.

I want to do this for different sites (One at a time) , and then compare file hashes that resulted from the above mentioned.
Thank you.

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,799 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 16,561 Reputation points Microsoft Vendor

    Hi @Riaan Smith,

    As per my knowledge, I'm afraid it is not supported to get file hash using PowerShell in SharePoint. No such command available in this scenario.

    To get other fields like file names, last modified date, refer to this article: Get Specific Fields from a SharePoint List. To get file size using PowerShell, refer to this: SharePoint Online: Get File Size using PowerShell.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.