Question
Scenario: We are looking for a solution to monitor the status of services on several of our remote computers. We have created a couple of
Scenario:
We are looking for a solution to monitor the status of services on several of our remote computers. We have created a couple of sample CSV files, one with a list of files and one with a list of computers. We need you to create a PowerShell command that will import the computer names from the computers.csv file and the service names from the services.csv file. It will then need to retrieve the information about the specified services from the specified computers. We want to display the computer that the service object was retrieved from, the name of the service, the display name or description of the service, the service status, and the services startup type. Since this command will be pulling information from multiple computers, we also want the services to be sorted by computer and we want a header for each computer name. The computers.csv file, services.csv file, and the example of what we want the output to look like can be downloaded below. When the PowerShell command works successfully, we will be able to edit the computers.csv files and services.csv files to change what we are monitoring and what computers we are monitoring them on while using the same command.
computers.csv
services.csv
Instructions:
Download the files above and create a PowerShell command that will import the computer names and service names from the CSV files and retrieve the required information. Make sure that the output of your command looks like the example file above. When you have completed the assignment, take a screen shot showing the command you used and the output of the command and upload it here.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started