FuzzySecurity / PowerShell-Suite

My musings with PowerShell
BSD 3-Clause "New" or "Revised" License
2.6k stars 762 forks source link

Update and rename Calculate-Hash.ps1 to Get-FileHash.ps1 #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

Made a few changes since I recently had to do this for a project. This can still use some cleanup but now you can pass an array of files/hash algorithms and get back an object for further processing.

FuzzySecurity commented 8 years ago

Hey mate, thanks for the input. To be honest this is just a small util I knocked together precisely because Get-FileHash is PS 4v+. As such I'm going to close this but feel free to fork&change.

The one other point I wanted t to make is my about approved verbs. I can understand the reason for it but I don't intend to abide by the rules in some cases so I won't entertain function name changes. Definitely nothing personal!

ghost commented 8 years ago

Aye. I had to write something similar because corporate IT has no intention of upgrading to WMF4 or WMF5 anytime soon. ExecutionPolicy (and a lack of a certificate infrastructure to sign my scripts) relegated me to writing a .NET application to solve the problem and be able to distribute the solution. Since I ran across your script, I figured I'd just update it a bit and send it your way since you had some other really nice scripts in this repository. Definitely keep up the good work!