I need to check the MD5 of a few files on Windows. Any recommendations on either a command line or an explorer-plugin utility?
I need to check the MD5 of a few files on Windows. Any recommendations on either a command line or an explorer-plugin utility?
There's a built-in PowerShell tool:
The following rules are as of Windows 7 SP1, Windows Server 2012, and beyond. If they are known to work in older versions, they will be noted with: (independent of Windows version)
You will need to open a Command Prompt OR Powershell to run this command
** a quick guide to open CMD/Powershell is at the bottom of the answer
You can find the checksum for a file using ANY of the following hashing algorithms, not JUST MD5:
To get the current list of supported Hash Algorithms on your specific windows machine (independent of Windows version), run
The full Format is below, optional parameters are in braces - just replace [HashAlgorithm] with your desired hash from above:
You can do the command line operation for ANY files, whether they provide a certificate or not (independent of Windows version)
If you leave off the [HashAlgorithm], it will default to the SHA1 checksum of your chosen file
Its HELPFUL to note that [HashAlgorithm] is case INsensitive in both CMD and Powershell meaning you can do any of the following (for example):
Quick: How to Open Command Prompt or Powershell
In case you do not know how to open the Command Prompt or Powershell and you got here by search engine, the following is a quick guide that will work for Windows XP and beyond:
Open a powershell window and try the following command:
Substituting {filename} with the path to your file, e.g.
More information on this can be found in the docs for Get-FileHash.
For the right-click Explorer shell extension option, I use Nirsoft's HashMyFiles.
http://www.fourmilab.ch/md5/
This is I think the same one as is available on most unix systems and couldn't be easier to use from the command line.
+1 on the FCIV. A lot of the google results for when I searched this issue had a lot of third party tools showing up in results, likely because at the time that is all that was available.
MS themselves have developed an "unsupported" tool FCIV and this is what I'd recommend you use, especially if you're a linux/unix guy and used to command line md5 checking
link here:
http://www.microsoft.com/en-us/download/details.aspx?id=11533
my screenshot here:
http://geekswing.com/wp-content/uploads/2014/04/windows_md5sum_sha1_example.jpg
I always install HashCheck. It integrates in the properties Dialog of the Explorer.
I use md5deep as it has several practical usability advantages over most of the others listed.
For one it has SHA1 and SHA256 executables in the same package, it also automatically handles directory recursion and it has a matching mode where it will validate that your files are as you left them. And it's a native Windows package so there is no need to install Cygwin if you don't really need it.
MS also has a tool called File Checksum Integrity Verifier (FCIV).
Single file: Look the answer below me.
All
.jpg
files in current directory:forfiles /s /m *.jpg /c "cmd /c CertUtil -hashfile @path MD5"
I install cygwin on all my Windows systems, then I use openssl's built in md5 command.