Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions