Bird
0
0

Which -ErrorAction value will suppress error messages but continue running the script?

easy📝 Conceptual Q2 of 15
PowerShell - Error Handling
Which -ErrorAction value will suppress error messages but continue running the script?
ASilentlyContinue
BContinue
CStop
DSilentlyStop
Step-by-Step Solution
Solution:
  1. Step 1: Recall ErrorAction options

    SilentlyContinue suppresses error messages but lets the script continue.
  2. Step 2: Differentiate from other options

    Stop halts execution, Continue shows errors, and SilentlyStop is not a valid value.
  3. Final Answer:

    SilentlyContinue -> Option A
  4. Quick Check:

    Suppress errors but continue = SilentlyContinue [OK]
Quick Trick: Use SilentlyContinue to hide errors but keep running [OK]
Common Mistakes:
  • Using Stop which halts script
  • Choosing SilentlyStop which is invalid
  • Confusing Continue with SilentlyContinue

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes