Bird
0
0

What will happen when you run this command?

medium📝 Command Output Q5 of 15
PowerShell - System Administration
What will happen when you run this command?
Stop-Process -Name 'chrome' -Force
AIt will throw an error because -Force is invalid.
BIt will prompt for confirmation before stopping Chrome.
CIt will only stop the first Chrome process found.
DAll Chrome processes will be forcibly stopped immediately.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Stop-Process with -Force

    -Force forces the process to stop without prompt or delay.
  2. Step 2: Effect on multiple processes

    Using -Name 'chrome' targets all Chrome processes, stopping them all immediately.
  3. Final Answer:

    All Chrome processes will be forcibly stopped immediately. -> Option D
  4. Quick Check:

    Stop-Process -Force kills all named processes instantly [OK]
Quick Trick: Use -Force to stop stubborn processes without prompt [OK]
Common Mistakes:
  • Expecting confirmation prompt with -Force
  • Thinking it stops only one process
  • Assuming -Force is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes