Generate file hash for specific files on your computer on a large scale

George Seah
3 min readFeb 22, 2021

After a long discussion, I was tasked by my boss to find out any open source program that can perform this activity.

With powershell, it is easy. A simple google search plus a few modifications allowed me to come up with this line. You may copy and paste this into a notepad then rename to GetHash.ps1.

Get-ChildItem -Path C:\Windows\Temp -Force -Recurse -Include “*.exe”,”*.dll”,”*.dat” -ErrorAction SilentlyContinue | Get-FileHash -Algorithm MD5 | Export-CSV…

--

--