加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-update – 如何确定Windows Server 2016上最近成功运行W

发布时间:2020-12-14 00:33:39 所属栏目:Windows 来源:网络整理
导读:似乎Microsoft在Server 2016中删除了此注册表项. HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateResultsInstall 有没有人知道具有上次Windows Update安装成功日期/时间的等效注册表项?或者也许是一种查询这个值的不同方法?
似乎Microsoft在Server 2016中删除了此注册表项.

HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto UpdateResultsInstall

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

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

HKLMSOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU

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

经过测试,这家伙的发现确实有效:
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/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读