Bird
0
0

Why might a PowerShell monitoring script's email alert fail even if the script runs without errors?

hard📝 Conceptual Q10 of 15
PowerShell - Automation Patterns
Why might a PowerShell monitoring script's email alert fail even if the script runs without errors?
AThe script runs on a machine with internet access
BThe script uses correct SMTP server and credentials
CThe email body is empty but the alert still sends
DSMTP server requires authentication but credentials are missing
Step-by-Step Solution
Solution:
  1. Step 1: Consider SMTP server requirements

    Many SMTP servers require authentication to send emails.
  2. Step 2: Effect of missing credentials

    If credentials are missing, emails won't send even if script runs fine.
  3. Final Answer:

    SMTP server requires authentication but credentials are missing -> Option D
  4. Quick Check:

    Missing auth = email fails silently [OK]
Quick Trick: Missing SMTP credentials cause silent email failure [OK]
Common Mistakes:
  • Assuming script success means email sent
  • Ignoring SMTP authentication needs
  • Thinking empty body blocks sending

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes