Determine Whether a Hotfix Is Installed in Windows PowerShell
Problem
You want to determine whether a specific hotfix is installed on a system.
Solution
To retrieve a list of hotfixes applied to the system, use the Win32_ QuickfixEngineering WMI class: PS >GetWmiObject Win32_QuickfixEngineering Filter "HotFixID='KB925228'"
Description : Windows PowerShell(TM) 1.0 FixComments : HotFixID : KB925228 Install Date : InstalledBy : InstalledOn : Name : ServicePackInEffect : SP3 Status :
To determine whether a specific fix is applied, use the TestHotfixInstallation script provided in Example 245: