Bird
0
0

What does the -ErrorAction SilentlyContinue parameter do in a PowerShell command?

easy📝 Conceptual Q11 of 15
PowerShell - Error Handling
What does the -ErrorAction SilentlyContinue parameter do in a PowerShell command?
AIt displays error messages and pauses the script.
BIt stops the script immediately when an error occurs.
CIt suppresses error messages and continues running the script.
DIt logs errors to a file but shows no messages.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the SilentlyContinue behavior

    The SilentlyContinue value tells PowerShell to hide error messages and keep running the script without interruption.
  2. Step 2: Compare with other ErrorAction values

    Unlike Stop, which halts the script, SilentlyContinue ignores errors silently, so the script continues smoothly.
  3. Final Answer:

    It suppresses error messages and continues running the script. -> Option C
  4. Quick Check:

    SilentlyContinue = suppress errors and continue [OK]
Quick Trick: SilentlyContinue hides errors and keeps script running [OK]
Common Mistakes:
  • Confusing SilentlyContinue with Stop which halts execution
  • Thinking errors are logged automatically
  • Assuming errors still display on screen

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes