You can find the MD5 of a file within Powershell using just a one liner. Here goes:
[BitConverter]::ToString((new-object Security.Cryptography.MD5CryptoServiceProvider).ComputeHash((new-object IO.FileInfo("c:\Path\ToFile.exe")).OpenRead())).Replace("-","").ToLower()
2 comments:
Best solution I found in the net!! Every time again, I am surprised what is possible in powershell. It resembles me of good old cmd64 ages ... ;-)
Bogi
Welcome! Here to help! :)
Post a Comment