windows-update – 如何确定Windows Server 2016上最近成功运行Windows Update的日期和时间?

似乎Microsoft在Server 2016中删除了此注册表项.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install

有没有人知道具有上次Windows Update安装成功日期/时间的等效注册表项?或者也许是一种查询这个值的不同方法

我花了几个小时谷歌搜索,但没有发现任何东西.我能找到的最近的注册表项是:

HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

但是,它没有上次成功安装日期/时间的关键.

经过测试,这家伙的发现确实有效:
Get-WmiObject -Class win32_reliabilityRecords -filter "sourcename = 'Microsoft-
Windows-WindowsUpdateClient'" -ErrorAction SilentlyContinue |
select @{LABEL = "date";EXPRESSION = {$_.ConvertToDateTime($_.timegenerated)}},@{LABEL = 'Update';EXPRESSION = {$_.message}} |
FT -AutoSize -Wrap

给你一个很好的总结:

date                 Update
----                 ------
8/18/2017 8:39:51 AM Installation Successful: Windows successfully installed 
the following update: 2017-08 Cumulative Update for Windows Server 2016 for 
x64-based Systems (KB4034658)
...

当然你可以拿出描述&标题,如果你只想要日期本身.

https://www.experts-exchange.com/questions/28713293/How-to-get-last-success-date-time-of-Windows-Update-on-Windows-10.html

https://blogs.technet.microsoft.com/heyscriptingguy/2011/08/22/use-powershell-to-easily-find-information-about-hotfixes/

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...