Question: Write a PowerShell script that when ran from the PowerShell Console hashes (MD5) all files in a given directory and compares them against a list

Write a PowerShell script that when ran from the PowerShell Console hashes (MD5) all files in a given directory and compares them against a list of known MD5 hashes. The scripts saved filename will use the standard naming convention Microsoft uses for cmdlets. The script will accept at least two parameters that dynamically modify the script rather than having to statically enter values. The Directory parameter will accept multiple values with C:\Windows\System32 being the default value. The Hash parameter will accept multiple values and will be a mandatory parameter. Additionally, create a functioning Comment Based Help compatible with Get-Help, and properly document the script using the following keywords: Synopsis, Description, Paramter (x2), and Example (x2).

-Parameters names to be used:

Directory

Hash

-Default Directory parameter value to check against MD5 hashes:

C:\Windows\System32

-MD5 hashes to search for:

03B997165FA5579D60464F18048F3B6

211D98BDF8BB67866F169DC23ECABAB

D87ECC1B91AF55986AA36EFC26A3F233

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!