Month: June 2017

Get-Hash

Quick code release Get-Hash returns the MD5 or SHA256 hash of a file. (Note: Powershell 4.0 has a built-in command for this.) Parameters FilePath The path to the file you wish to hash. Usage Inside of a powershell console enter the following: “” -FilePath “” Example: &”C:\Scripts\Get-Hash.ps1″ -FilePath “C:\FileToHash.xml” Script MD5 Param($FilePath) if (-not (Test-Path …