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