[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[技术讨论] PowerShell检查NSA永恒之蓝MS17-010漏洞补丁

  1. # Windows XP, Windows Vista, Windows 8, Windows Server 2008
  2. Get-HotFix | Where-Object { $_.HotfixID -eq 'KB4012598' } | Format-Table -AutoSize
  3. # Windows 7 SP1, Windows Server 2008 R2 SP1
  4. Get-HotFix | Where-Object { $_.HotfixID -eq 'KB4012212' -or $_.HotfixID -eq 'KB4012215' } | Format-Table -AutoSize
  5. # Windows 8.1, Windows Server 2012 R2
  6. Get-HotFix | Where-Object { $_.HotfixID -eq 'KB4012213' -or $_.HotfixID -eq 'KB4012216' } | Format-Table -AutoSize
  7. # Windows Server 2012
  8. Get-HotFix | Where-Object { $_.HotfixID -eq 'KB4012214' -or $_.HotfixID -eq 'KB4012217' } | Format-Table -AutoSize
  9. # Windows 10
  10. Get-HotFix | Where-Object { $_.HotfixID -eq 'KB4012606' -or $_.HotfixID -eq 'KB4013198' -or $_.HotfixID -eq 'KB4013429' } | Format-Table -AutoSize
复制代码
参考信息:
https://technet.microsoft.com/zh-cn/library/security/MS17-010
https://blogs.technet.microsoft.com/msrc/2017/05/12/customer-guidance-for-wannacrypt-attacks/
测试代码之前请做好备份

回复 3# codegay


你的版本好高,我的 Win 7 + PS 4.0 没问题。试试这个呢:
  1. Get-WmiObject -Query "Select * from Win32_QuickFixEngineering where HotFixID= 'KB4012212'"
复制代码
测试代码之前请做好备份

TOP

回复 5# codegay


    6.0现在是Beta版吧,不知道将来GA的版本会怎样。
测试代码之前请做好备份

TOP

回复 10# xxbdh


    我的Win7安装KB4012212之后用这个方法查不出来
测试代码之前请做好备份

TOP

返回列表