<img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=314913&amp;fmt=gif">

Powershell Detection of WannaCry relevant Patches

Troy Whittaker
May 16, 2017

In the midst of all the #WannaCry mayhem,  ITS Partners is committed to protecting customers against this unprecedented threat.  Thanks to one of our engineers and a bit of PowerShell, we have a way to detect if the relevant patches are installed to protect your endpoints from the WannaCry threat.

The Script, when run on an endpoint will return False if you have the proper patches, and an Error if the machine is not protected.  The following OS’s are supported (with PowerShell installed):

Windows XP

Windows Vista

Windows 7

Windows 8

Windows 8.1

Windows 10 (All Current Builds) 1507, 1511, 1607, and 1703

Windows Server 2003

Windows Server 2008

Windows Server 2008 R2

Windows Server 2012

Windows Server 2012 R2

Windows Server 2016

 

Should you not have the proper patches to protect against WannaCry, See the Table below to find the KB for your specific patching needs:

To download the script, click here.

  1. Open a PowerShell console (Make sure you've downloaded the script to a known location.  A good idea is to keep it in a folder on your C Drive named Scripts)
  2. Run the following command to start the script: C:\scripts\Is-VulnerableToWannacry.ps1

You May Also Like

These Stories on Microsoft

Subscribe by Email