Question: 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

 12. Write a PowerShell script that follows these specifications: Have a

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

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!