本文告诉大家如何通过 WMI 获取补丁
通过 Win32_QuickFixEngineering 可以获取系统启动的服务
代码语言:javascript复制Get-WmiObject Win32_QuickFixEngineering
运行代码
代码语言:javascript复制Source Description HotFixID InstalledBy InstalledOn
------ ----------- -------- ----------- -----------
DESKTOP-KA... Update KB4483452 NT AUTHORITYSYSTEM 2019/2/14 0:00:00
DESKTOP-KA... Security Update KB4465477 NT AUTHORITYSYSTEM 2018/10/30 0:00:00
DESKTOP-KA... Security Update KB4465664 NT AUTHORITYSYSTEM 2018/11/16 0:00:00
DESKTOP-KA... Update KB4469041 NT AUTHORITYSYSTEM 2018/12/7 0:00:00
DESKTOP-KA... Update KB4470502 NT AUTHORITYSYSTEM 2018/12/18 0:00:00
DESKTOP-KA... Security Update KB4470788 NT AUTHORITYSYSTEM 2018/11/17 0:00:00
DESKTOP-KA... Security Update KB4471331 NT AUTHORITYSYSTEM 2018/12/7 0:00:00
DESKTOP-KA... Update KB4480056 NT AUTHORITYSYSTEM 2019/1/10 0:00:00
DESKTOP-KA... Security Update KB4480979 NT AUTHORITYSYSTEM 2019/1/10 0:00:00
DESKTOP-KA... Security Update KB4487038 NT AUTHORITYSYSTEM 2019/2/14 0:00:00
DESKTOP-KA... Update KB4482887 NT AUTHORITYSYSTEM 2019/2/21 0:00:00