title | author | date | CreateTime | categories |
---|---|---|---|---|
PowerShell 通过 WMI 获取补丁
|
lindexi
|
2019-02-21 20:39:51 +0800
|
2019-02-21 20:39:51 +0800
|
PowerShell WMI
|
本文告诉大家如何通过 WMI 获取补丁
通过 Win32_QuickFixEngineering 可以获取系统启动的服务
Get-WmiObject Win32_QuickFixEngineering
运行代码
Source Description HotFixID InstalledBy InstalledOn ------ ----------- -------- ----------- ----------- DESKTOP-KA... Update KB4483452 NT AUTHORITY\SYSTEM 2019/2/14 0:00:00 DESKTOP-KA... Security Update KB4465477 NT AUTHORITY\SYSTEM 2018/10/30 0:00:00 DESKTOP-KA... Security Update KB4465664 NT AUTHORITY\SYSTEM 2018/11/16 0:00:00 DESKTOP-KA... Update KB4469041 NT AUTHORITY\SYSTEM 2018/12/7 0:00:00 DESKTOP-KA... Update KB4470502 NT AUTHORITY\SYSTEM 2018/12/18 0:00:00 DESKTOP-KA... Security Update KB4470788 NT AUTHORITY\SYSTEM 2018/11/17 0:00:00 DESKTOP-KA... Security Update KB4471331 NT AUTHORITY\SYSTEM 2018/12/7 0:00:00 DESKTOP-KA... Update KB4480056 NT AUTHORITY\SYSTEM 2019/1/10 0:00:00 DESKTOP-KA... Security Update KB4480979 NT AUTHORITY\SYSTEM 2019/1/10 0:00:00 DESKTOP-KA... Security Update KB4487038 NT AUTHORITY\SYSTEM 2019/2/14 0:00:00 DESKTOP-KA... Update KB4482887 NT AUTHORITY\SYSTEM 2019/2/21 0:00:00