Question: #5. Use Invoke-Command to Code a One-to-Many Remote Connection to a remote computer and send script to complete. #Step 4: Write the PowerShell syntax to

#5. Use Invoke-Command to Code a One-to-Many Remote Connection to a remote computer and send script to complete. <# Step 1: Code Script named "AssessmentModule1.PS1" and save script on C:\ -The Script should complete the following Tasks: Obtain a list of processes. Filter the PowerShell Process out of the output Sort the Processes by CPU with the highest CPU usage at the top of the list Only display the 10 processes with the highest CPU usage Format the output in a table (Display only three properties: ProcessName, ID, and CPU), and alter the display of the CPU info by showing only 2 decimal places Lastly, save the results to a txt file named ProcessCPU.txt on the root of C:\ Step 2: Use Invoke-Command to run script on remote computers -Reuse the variables "$Cred" and "$Computers" created in question 4. -Use the -FilePath parameter to send the script named "AssessmentModule1.PS1" to the remote computers Step 3: Use Invoke-Command to ensure the file output of the script ("C:\ProcessCPU.txt") was created successfully on the remote computer #> #Step 4: Write the PowerShell syntax to delete the C:\ProcessCPU.txt from Client1 without being prompted. #Then write the PowerShell syntax to show that it has been deleted

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 Databases Questions!