Powershell md5 hash on all files in folder?

snyderkv
snyderkv used Ask the Experts™
Hello,

I ran an md5 hash command using the line below but how do I do this for all ISO files within one folder?

get-filehash file.iso -algorithm md5

Thanks a bunch
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Just use a wildcard specification:
get-filehash *.iso -algorithm md5

Open in new window

The resulting objects contain the full path name in Path and the hash in Hash.
Serious? Cool thanks. I thought there would be some annoying for each statement or something.
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Sometimes the answer is simple :D.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial