Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12. Write a PowerShell script that follows these specifications: Have a name of Q13.ps1 Accept two inputs . One integer parameter, $Page Eaults ii. A

image text in transcribed

12. Write a PowerShell script that follows these specifications: Have a name of Q13.ps1 Accept two inputs . One integer parameter, $Page Eaults ii. A System Management ManagementObiectest\cimv2\win32_Proce 33 object from the pipeline. The program should test each Win32_Process object to see if the Win32_Process's page faults are above the $Page Faults parameter If the Win32_Process's number of page faults is greater that the parameter, use Write- Output to print the Win32_Process's name to the screen. To test your script, use the following command. It assumes that you named the file correctly, and that you have navigated to the directory where you stored your file. Get-Wmiobiect -class Win32_Process | . \013.ps1 4000 . Your code should include the BEGIN, PROCESS, and END script blocks PowerShell script: 12. Write a PowerShell script that follows these specifications: Have a name of Q13.ps1 Accept two inputs . One integer parameter, $Page Eaults ii. A System Management ManagementObiectest\cimv2\win32_Proce 33 object from the pipeline. The program should test each Win32_Process object to see if the Win32_Process's page faults are above the $Page Faults parameter If the Win32_Process's number of page faults is greater that the parameter, use Write- Output to print the Win32_Process's name to the screen. To test your script, use the following command. It assumes that you named the file correctly, and that you have navigated to the directory where you stored your file. Get-Wmiobiect -class Win32_Process | . \013.ps1 4000 . Your code should include the BEGIN, PROCESS, and END script blocks PowerShell script

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

Which were the causes of high employee turnover at Fomco Group?

Answered: 1 week ago