Challenge - 5 Problems
PowerShell Email Alert Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
PowerShell Email Alert Command Output
What is the output of this PowerShell command that sends an email alert when disk space is low?
PowerShell
Send-MailMessage -From "alert@company.com" -To "admin@company.com" -Subject "Disk Space Low" -Body "Drive C: is below 10% free space." -SmtpServer "smtp.company.com"
Attempts:
2 left
💡 Hint
Check what Send-MailMessage does with the given parameters.
✗ Incorrect
Send-MailMessage sends an email with the specified parameters. It does not output disk space or save to a file.
❓ Configuration
intermediate1:30remaining
Configuring SMTP Server for PowerShell Email Alerts
Which SMTP server configuration is correct for sending email alerts using PowerShell's Send-MailMessage cmdlet?
Attempts:
2 left
💡 Hint
SMTP server should be specified as a hostname or IP without protocol prefix.
✗ Incorrect
The SmtpServer parameter expects a hostname or IP address without protocol or port unless the port is default.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting PowerShell Email Alert Failure
A monitoring script using Send-MailMessage fails with the error: 'The SMTP server requires a secure connection or the client was not authenticated.' What is the most likely cause?
Attempts:
2 left
💡 Hint
Check if the script includes credentials and SSL parameters.
✗ Incorrect
This error usually means the SMTP server needs authentication and secure connection, which must be provided in the script.
🔀 Workflow
advanced2:00remaining
PowerShell Monitoring Script Workflow for Email Alerts
Which step order correctly describes a PowerShell script workflow that monitors CPU usage and sends an email alert if usage exceeds 80%?
Attempts:
2 left
💡 Hint
Think about the logical order of monitoring and alerting.
✗ Incorrect
First get data, then check condition, then alert if needed, then end or wait.
✅ Best Practice
expert2:30remaining
Best Practice for Secure PowerShell Email Alerts
Which practice is best to securely send email alerts from a PowerShell monitoring script?
Attempts:
2 left
💡 Hint
Consider security risks of storing credentials.
✗ Incorrect
Storing encrypted credentials securely and loading them at runtime protects sensitive data.