top of page

Vadims Podans has posted a script for PowerShell here which can be used to generate the hash value of a folder containing multiple files.

Simply copy and paste this function in PowerShell:

function Get-FolderHash ($folder) { dir $folder -Recurse | ?{!$_.psiscontainer} | %{[Byte[]]$contents += [System.IO.File]::ReadAllBytes($_.fullname)} $hasher = [System.Security.Cryptography.SHA1]::Create() [string]::Join("",$($hasher.ComputeHash($contents) | %{"{0:x2}" -f $_})) }

Then enter the command:

Get-FolderHash "C:\foofolder"

A single SHA1 hash value will be generated for the entire folder.

The views expressed in these posts are those of the owner and do not reflect the views or opinions of the owner’s employer. All content provided on this page is for informational purposes only. The owner makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information. This policy is subject to change at any time. The owner is not an attorney, and nothing posted on this site should be construed as legal advice. Litigation Support Tip of the Night does not provide confirmation that any e-discovery technique or conduct is compliant with legal, regulatory, contractual or ethical requirements.


 
 

You can use the Get-FileHash command in PowerShell to generate hash values of an electronic file. PowerShell supports the MD5; SHA1; SHA256; SHA384; and SHA512 algorithms.

Enter the Get-FileHash command, followed by the path of the file to be analyzed, and then the specification for the algorithm. The Format-List cmdlet will show each of the properties of the command on a separate line.

Get-FileHash C:\foofolder\FederalRulesofEvidence.pdf -Algorithm SHA1 | Format-List


 
 

The PowerShell script posted here by staggerlee011 on SQL Notes From The Underground can be used to generate a list of folders in an Outlook profile.

First connect to Outlook:

$Outlook = New-Object -ComObject Outlook.Application

Then enter two more commands to generate the list:

$Outlook.Session.Folders.Item(1).Folders

$OutlookFolders | ft FolderPath


 
 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page