E-Mail Notification for Windows Updates

Sometimes I have to deal with a Windows server. But I do not log in regularly, so I wanted to be informed about available Windows updates by e-mail. Some short research in the internet indicated, that this is not possible out-of-the-box.

So I enjoyed hacking a bit of Python to create a script that triggers the check for new Windows updates and send out an e-mail with the result. You can find the script on Github.

The README explains how to set it up in detail. Basically, after cloning the script, you copy the configuration file template and add your e-mail address and SMTP server name. Then you can e.g. add the script to the Windows Scheduler and run it once per day.

Here is an example e-mail sent by the script:

Subject: Windows Update check for mydomain\myhost

Windows Update check for mydomain\myhost

The following windows updates are available:

* CRITICAL: Security Update for Windows 7 for x64-based Systems
  (KB3146963)

  A security issue has been identified in a Microsoft software product
  that could affect your system. You can help protect your system by
  installing this update from Microsoft. For a complete listing of the
  issues that are included in this update, see the associated
  Microsoft Knowledge Base article. After you install this update, you
  may have to restart your system.


* IMPORTANT: Security Update for Windows 7 for x64-based Systems
  (KB3146706)

  A security issue has been identified in a Microsoft software product
  that could affect your system. You can help protect your system by
  installing this update from Microsoft. For a complete listing of the
  issues that are included in this update, see the associated
  Microsoft Knowledge Base article. After you install this update, you
  may have to restart your system.

--
Generated by email-win-updates.py See
http://github.com/motlib/email-win-updates for more info.
LinkedIn logo mail logo