Microsoft has provided a means to generate hashcode using the File Checksum Integrity Verifier(fciv). It allows a hashcode to be generated for a single file and also for all files in a folder using the -xml option to write all the hashcode of files in a folder in an xml file.
But fciv has been created more than 10 years ago and being stated as unsupported means Microsoft will not enhance it further. fciv can only support up to cryptography standard of MD5 and SHA1 and currently higher standards(eg SHA256) are already available. So in order to overcome this, there are third party tools available in the market(including one from Microsoft via Powershell script). I have decided to take up a challenge to create one myself by writing it in Powershell.
Explanation without techie jargons
The layman explanation of the code is as below:
Get all the files in a particular folder(including subfolders)
Read the hash code of each individual file
Write hash code of each individual file to an xml
Final output will be the hash code of the xml file
You can just get the end product code at the bottom. If you want to go through the whole long explanation of how its done, just go to next post.
Hi, I am Yarn Then Cohos King. Welcome to my blog. I am someone who always look to find more effective or efficient ways of gettings things done. Now I am sharing these as well as my thoughts and ideas to benefit others via this blog.
You can contact me via:
or contacting me via the Guestbook