积极答复者
Powershell 查看系统当前已安装的补丁

问题
答案
-
您好,
要列出Windows Update安装的更新可以这样
$updates = New-Object -ComObject “Microsoft.Update.Searcher” $total = $updates.GetTotalHistoryCount() $updates.QueryHistory(0,$total) | Select-Object -Property Title, Description, Date
对于一些程序如Office的更新可以这样
$paths = 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' Get-ItemProperty -Path $paths | Where-Object {$_.DisplayName -like '*update*'} | Select-Object -ExpandProperty DisplayName
如您还有其他疑问,请随时与我们联系。 如果回答是有帮助的, 请将其标记为答案, 可以帮助其他有相同问题的社区成员, 并快速找到有用的答复。
祝好
Ian Xue
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
全部回复
-
您好,
要列出Windows Update安装的更新可以这样
$updates = New-Object -ComObject “Microsoft.Update.Searcher” $total = $updates.GetTotalHistoryCount() $updates.QueryHistory(0,$total) | Select-Object -Property Title, Description, Date
对于一些程序如Office的更新可以这样
$paths = 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' Get-ItemProperty -Path $paths | Where-Object {$_.DisplayName -like '*update*'} | Select-Object -ExpandProperty DisplayName
如您还有其他疑问,请随时与我们联系。 如果回答是有帮助的, 请将其标记为答案, 可以帮助其他有相同问题的社区成员, 并快速找到有用的答复。
祝好
Ian Xue
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com. -
您好:
请问上述回复是否能够解决您的问题?
如您还有其他疑问,请随时与我们联系。 如果回答是有帮助的, 请将其标记为答案, 可以帮助其他有相同问题的社区成员, 并快速找到有用的答复。
祝好
Ian Xue
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已编辑 Ian Xue 2021年3月9日 1:27
-
您好:
请问您的问题得到解决了吗?
如果还有疑问,请随时在帖子下面回复。如果回答是有帮助的, 请将其标记为答案, 可以帮助其他有相同问题的社区成员, 并快速找到有用的答复。
祝好
Ian Xue
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.