补丁更新获取
Get-HotFix
gwmi win32_quickFixEngineering
if (Get-WmiObject -Query "Select * from WIN32_QuickFixEngineering where HotFixID = 'KB2506143'")
{write-host "Installed" -ForegroundColor DarkRed}
Get-HotFix
gwmi win32_quickFixEngineering
if (Get-WmiObject -Query "Select * from WIN32_QuickFixEngineering where HotFixID = 'KB2506143'")
{write-host "Installed" -ForegroundColor DarkRed}