Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. (1 point) Write and submit a PowerShell script named YourFullName >_2a.ps1, which adds a value to the HKLMSOFTWARE Microsoft WindowsCurrentVersion key for a

image text in transcribed

a. (1 point) Write and submit a PowerShell script named YourFullName >_2a.ps1, which adds a value to the HKLM\SOFTWARE Microsoft \ Windows\CurrentVersion key for a benign program of your choice, where the value name contains your own name (You should see this value as one of the outputs of your part (b) code when you print the keys and values). b. (2.5 points) Write and submit a program that will print out a list of all of the values in the Run and RunOnce keys, and that of their subkeys (if present). Your code should work on any Windows 10 machine's registry (i.e., it cannot be specific to your own machine). Note that the Run and RunOnce keys appear under both HKEY_LOCAL_MACHINE and HKEY_CURRENT_USERS (under the same path). The printed list should also contain the values in the subkeys in these keys, if any are present (i.e., it needs to search recursively). You have two options for writing and submitting your program: (Option i): Write a Python program named YourFullName __2b.py that contains a function called listRegistrystartedPrograms(), which meets the objectives outlined above in this question 2b. (OR Option ii): Write a PowerShell script named _2b.ps1 that meets the objectives outlined above in this question 2b. Notes: to enable running PowerShell scripts on your Windows VM, open the PowerShell Console by searching for PowerShell, then click "Run as Administrator". In the PowerShell Console, set the execution policy with the command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned, then press A or Y

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions