CompTIA Server+ SK0-005 Practice Question
During a planned maintenance window, a systems administrator is writing a PowerShell script that will iterate through a list of Windows Server hosts stored in the $servers variable:
foreach ($srv in $servers) {
Stop-Computer -ComputerName $srv -Credential $cred -Force <PARAMETER>
}
The script must issue the shutdown request to every host and then continue running so it can write a status log while the machines power off. Which parameter should replace
-WhatIf
-AsJob
-ThrottleLimit 10
-Confirm