Category Archives: Windows

Windows & Microsoft related topics

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

Native resolution not set after deploying via MDT 2010

If your machines aren’t automatically having their display resolution set to their monitor’s native resolution after deployment via MDT, this may be the cause of the problem. Although I’d previously deployed Vista and Windows 7 using MDT 2010, I’d never … Continue reading

Posted in SysAdmin, Windows | Tagged , | Leave a comment

MDT/WSIM fails to catalog a captured Windows 7 image

Had an issue today where I was trying to catalog a captured Windows 7 WIM image, both through MDT 2010 and through WSIM directly. Doing so comes up with an error: Performing operation “generate” on Target “Catalog”. The operation failed … Continue reading

Posted in SysAdmin, Windows | Tagged , | 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

Posted in PowerShell, Scripting, SysAdmin | Tagged , | 2 Comments

7-Zip tip – Quickly extract into a particular folder

If you need to extract a file into a particular folder, what do you normally do? Some people may copy the Zip file into the destination folder, and then unzip it. Others may launch their unzip tool of choice’s file … Continue reading

Posted in Applications | Tagged | Leave a comment