Welcome to Assignments Writing

Your Trusted Partner in Term Paper Writing

At Assignments Writing, we’re a team of passionate educators and skilled writers committed to supporting students in their academic journey.

AIU Windows PowerShell Script for Registry Check Questions

AIU Windows PowerShell Script for Registry Check Questions

ANSWER

To accomplish the tasks described in your assignment, you can create a PowerShell script. Here’s a sample script that performs the required actions:

powershell
# Define the registry paths
$currentUserPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"
$localMachinePath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run"

# Load the list of acceptable entries from a text file
$acceptableEntries = Get-Content -Path "Acceptable_Reg.txt"

# Get the computer name
$computerName = $env:COMPUTERNAME

# Initialize a list to store unacceptable entries
$unacceptableEntries = @()

# Function to compare registry entries
function Compare-Entries {
param (
[string]$registryPath,
[string]$registryKey
)
$entry = Get-ItemProperty -Path $registryPath -Name $registryKey -ErrorAction SilentlyContinue
if ($entry -ne $null) {
$value = $entry.$registryKey
if ($value -notin $acceptableEntries) {
$unacceptableEntries += "$registryPath\$registryKey = $value"
}
}
}

# Check and compare entries in both registry locations
Compare-Entries -registryPath $currentUserPath -registryKey $_
Compare-Entries -registryPath $localMachinePath -registryKey $_

# Generate a report file
if ($unacceptableEntries.Count -gt 0) {
$reportFileName = "$computerName_Report.txt"
$unacceptableEntries | Out-File -FilePath $reportFileName
# Transmit the report file to the intranet address (replace with your actual address)
Copy-Item -Path $reportFileName -Destination "\\intranet-address\$reportFileName"
}

# Display a message indicating the script has completed
Write-Host "Registry check completed. Unacceptable entries have been logged."

Make sure to replace "Acceptable_Reg.txt" with the actual path to your list of acceptable registry entries. Also, replace "\\intranet-address\" with the actual intranet address where you want to transmit the report file.

To use this script, you can save it as a .ps1 file and make it available for download on your company intranet. Users can then download and run the script on their Windows machines. It will check the specified registry locations for unacceptable entries, log them to a report file, and transmit the report to the intranet address.

AIU Windows PowerShell Script for Registry Check Questions

QUESTION

Description

 

 

Assignment Description

One of the major causes of system performance issues is programs that run in the background and are started when the system starts. These programs are usually installed, so they are started from one of two entries in the system registry:

HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run

HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Run

As a network administrator, you would like to gather information about these registry entries for all the computers in the network. You have selected Windows PowerShell to write a script for this task. Your plan will result in a document with a script for the tasks involved. Because there are security issues that prevent executing the scripts on remote computers, the script will be distributed to all users on the network as a download link on the company intranet. For purposes of this exercise, security issues can be ignored, so the script is not required to take security issues into account.

Prepare a document to submit your work:

Use Word.

  • Title Page
  • Course number and name

Project name

Student name

  • Date

Provide well-documented source code for a Windows PowerShell script that will perform the following tasks:

  • Read the registry entries from both of the locations named in the project description.
  • Compare each entry to a list of acceptable entries. The acceptable entry list is from a text file named “Acceptable_Reg.txt” that will accompany the script when the script is downloaded.

Produce a text file report that lists all unacceptable registry entries. Save the report using the computer name as the file name.

  • Transmit the report file to the following intranet address:
Place Your Order Here

Our Service Charter


1. Professional & Expert Writers: We only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master’s and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. We are known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: We have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Format & Features

Our Advantages

How It Works

1. Fill Order Form
2. Make payment
3. Writing process
4. Download paper

Fill in the order form and submit all your files, including instructions, rubrics, and other information given to you by your instructor.

Once you complete filling the forms, complete your payment. We will get the order and assign it to a writer.

When your order is completed, it’s assigned to an editor for approval. The editor approves the order.

Once approved, we will upload the order to your account for you to download.  You can rate your writer or give your customer review.

What Clients Said

{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Mercy M
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Jane L
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

4.5
Rayan M

LET US DELIVER YOUR ACADEMIC PAPER ON TIME!

We are a freelance academic writing company geared towards provision of high quality academic papers to students worldwide.

Open chat
1
Scan the code
Hello
Can we help you?