You are the IT administrator at a small corporate office. You just downloaded a new release for a program you use. You need to make sure the file was not altered before you received it. Another file containing the original file hash was also downloaded. The files are located in C:​\​Downloads.
In this lab, your task is to use MD5 hash files to confirm that the Release.zip file was unaltered as follows:
Use Windows PowerShell to generate a file hash for Release.zip.
Examine the release821hash.txt file for the original hash.
Compare the original hash of the Release.zip file to its calculated hash in PowerShell to see if they match.At the prompt, type "calculated hash" -eq "known hash" and press Enter.The calculated hash is the hash generated by the get-filehash file_name -a md5 command and the known hash is the hash generated by the get-content file_name.txt command. Remember to include the quotation marks and the file extensions with the file names in the commands.Scenario

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