wordpress   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了windows-update – 如何确定Windows Server 2016上最近成功运行Windows Update的日期和时间?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

似乎Microsoft在Server 2016中删除了此注册表项. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Windowsupdate\Auto update\Results\Install 有没有人知道具有上次Windows update安装成功日期/时间的等效注册表项?或者也许是一种查询这个值的不同方法? 我花了几个小时谷歌搜索,但没有发现
似乎Microsoft在Server 2016中删除了此注册表项.

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

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

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

经过测试,这家伙的发现确实有效:
Get-WmiObject -Class win32_reliabilityRecords -filter "sourc@R_616_8371@ = 'Microsoft-
Windows-WindowsupdateClient'" -ErrOraction SilentlyConTinue |
SELEct @{LABEL = "date";EXPRESSION = {$_.ConvertTodatetiR_487_11845@e($_.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/

大佬总结

以上是大佬教程为你收集整理的windows-update – 如何确定Windows Server 2016上最近成功运行Windows Update的日期和时间?全部内容,希望文章能够帮你解决windows-update – 如何确定Windows Server 2016上最近成功运行Windows Update的日期和时间?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。