Tag Archives: send-mailmessage

Send email via Yahoo with PowerShell

Quick reference for sending email via a Yahoo! mail account and their SMTP servers from within a PowerShell script. You’ll need the Yahoo SMTP server details, which require you to use a specific port (587 – I couldn’t get 465 … Continue reading

Rate this:

Posted in PowerShell, Security | Tagged , , , , , , , , , , , , | 1 Comment

Send SMTP email with authentication from PowerShell

Email is a good way to send notifications from your PowerShell scripts, and it’s super easy. You just need an SMTP server, and use Send-MailMessage: You can even omit the -SmtpServer bit if you’ve previously set the $PSEmailServer preference variable. … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , , , , , , | 5 Comments

PowerShell: Email on high CPU usage

Another quickie. The requirement was to get an email alert when CPU usage reached over 90%. This is achievable via PerfMon Data Collector Set alerts, EventLog task triggers and a script to send an email (unless you’re on pre-Server 2012 … Continue reading

Rate this:

Posted in Performance, PowerShell | Tagged , , , , , , , , , , , , | Leave a comment