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.