Respuesta :
In Windows, PowerShell use the following steps to compare whether the two files have been altered or not.
- Start with a right-click, then choose Windows PowerShell (Admin).
- To access the directory containing the files, enter cd downloads at the prompt and press Enter.
- To see the files that are available, type dir and hit Enter.
- To view the MD5 hash, type get-filehash Release.zip -a md5 and hit Enter.
- To read the known hash stored in the.txt file, enter get-content release821hash.txt and hit Enter.
- If the file hashes match, type "calculated hash" -eq "known hash" and hit Enter.
The other way is to actually use the hash value to compare as given below:
>Get-FileHash -path -Algorithm MD5
>Algo Hash Path
MD5 9C784349F4ZDB44A84C7958C246E3948 c:\download
It will give the hash as hash value i.e 9C784349F4ZDB44A84C7958C246E3948.
Now,
>(Get-FileHash -path -Algorithm MD5).Hash -eq (“Hashvalue”)
>True
If the value return is True then it will be a match.
To learn more about Powershell click here:
brainly.com/question/29413575
#SPJ4