Tag Archives: email

Send notification email from SCCM 2012 Task Sequence

I wanted to be able to send an email from a step in a SCCM 2012 OS Deployment (OSD) task sequence. This was so that I could be notified when the task sequence had completed successfully. The account used to … Continue reading

Rate this:

Posted in sccm, Scripting, Windows | Tagged , , , , , , , , , | Leave a 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 RegEx Web Scraping

I wrote this as a learning process, and because I’d been wanting something that did this for a while anyway. Checking a website regularly is tedious, but getting an email when it shows new info I’m interested in is perfect. … Continue reading

Rate this:

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

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

SBS 2008: Emails not received or bouncing

Small Business Server 2008 contains (amongst other things) Exchange 2007. This means that email handling is done on-premises rather than by an SMTP/IMAP/POP3/Exchange server hosted out on the internet somewhere. This has good points and bad points. The good is … Continue reading

Rate this:

Posted in Exchange, Networking, Windows | Tagged , , , , , , , , , , , , , , , | 2 Comments

PowerShell LDAP response time monitor

I recently had some issues with a system not getting very response times to LDAP queries sent to various Active Directory domain controllers. These were resolved via a combination of Windows Server 2003 Server Performance Advisor and the built in, … Continue reading

Rate this:

Posted in Performance, PowerShell, Windows | Tagged , , , , , , , , , , , , , | 1 Comment