Test for applicable patches to prevent the WannaCry malware.  Tests for SMB1 protocol and component.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Test-WannaCryVulnerability

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Thomas J. Malkewitz @dotps1

Package Details



dotps1 WannaCry WannaCrypt EternalBlue SMB1 Malware


This script has no dependencies.

Release Notes

Added LastBootUpTime to returned PSCustomObject per suggestion by Brett Miller (@BrettMiller_IT).


Version History

Version Downloads Last updated
2.2 (current version) 572 5/18/2017
2.1 59 5/17/2017
2.0 59 5/17/2017
1.4 68 5/16/2017
1.3 21 5/16/2017
1.2 15 5/16/2017
1.1 17 5/15/2017
1.0 20 5/15/2017
Show more