Question: Task 4 . Advanced Pipeline work ( 1 0 points ) The lab files for this week include a text file with a list of

Task 4. Advanced Pipeline work (10 points)
The lab files for this week include a text file with a list of computer names.
Have PowerShell read from this file to get a list of processes running on each of these computers.
Create a PowerShell pipeline that:
1. Reads the computer names in from a text file
2. Use Select-Object to map the string value $_ to computerName for each object.
Were setting up for get-process here. get-process looks for a computer name stored in the computerName property for each object.
3. For each name in the collection, run get-process.
This wont work. Thats fine. PowerShell will attempt to connect to the first computer, fail, and stop.
4. Capture the pipeline command below the rubric.
5. Start a new pipeline with just a ps command on the local computer.
In normal operation, you would continue to build on the pipeline from step 3. The principle should be clear enough.
6. Filter the process list to only include processes with a CPU usage greater than 1.0.
7. Sort the process objects by ID.
8. Output just the names of the processes, formatted in rows and columns.
9. Paste a screenshot of your output and the text of your PowerShell command(s) below the rubric.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!