Search
Topics
Archives
- February 2012 (2)
- January 2012 (3)
- November 2011 (1)
- October 2011 (3)
- September 2011 (1)
- August 2011 (6)
- July 2011 (1)
- June 2011 (1)
- April 2011 (1)
- March 2011 (4)
- February 2011 (1)
- January 2011 (1)
- November 2010 (1)
- October 2010 (3)
- July 2010 (3)
- June 2010 (1)
- April 2010 (1)
- November 2009 (1)
- July 2009 (1)
- April 2009 (2)
- October 2008 (3)
- August 2008 (2)
- May 2008 (1)
- February 2008 (1)
- October 2007 (2)
- August 2007 (2)
- July 2007 (2)
- May 2007 (1)
- April 2007 (3)
- March 2007 (2)
- December 2006 (3)
- November 2006 (4)
- October 2006 (3)
- July 2006 (3)
Category Archives: PowerShell
Send a HTML email with PowerShell
There’s a simple one-liner (expanded onto multiple lines for clarity) in PowerShell that allows you to send an email with HTML content derived from a HTML file: Send-MailMessage -Subject “Test email” -To “recipient@contoso.com” -From “me@contoso.com” -SmtpServer mail.contoso.com -BodyAsHtml (Get-Content “d:\templates\invite-template.htm” … Continue reading
Posted in PowerShell
Leave a comment
PowerShell: Cancel all print jobs
Here’s a quick PowerShell script I put together to delete all print jobs from our Windows Server 2008 R2 print server. It’s run overnight as a scheduled task. We do this because sometimes our print accounting software doesn’t clear out … Continue reading