In PowerShell 5.0 the Get-FileHash cmdlet is able to compute the hash of input streams as well, so we could use SPFile.OpenBinaryStream method to access the file content, and then compute its hash value. If you had the SharePoint sites mapped to the Windows File System via WebDAV, you could use the Get-FileHash cmdlet from PowerShell 4.0 (or above). Comparing the content of files means in practice typically to compare the hash values calculated based on the file content.īut how to compute the hash of a file stored in SharePoint? Recently we had to compare master pages of hundreds of sites to find out, which ones contain customizations.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |