是否有可能findWindows Server 2003上安装Windows更新的date?
如果我去控制面板 – >安装/卸载程序,并选中“显示更新”checkbox,它将显示已安装的Windows更新,但我没有看到安装date任何地方。
尝试在c:\ windows \ WindowsUpdate.log中查找
在PowerShell中,你可以这样做: Get-WmiObject -Class "win32_quickfixengineering"方便快捷。
你也可以看看这里 – %windir%\ SoftwareDistribution \ ReportingEvents.log。
Psinfo -h会显示安装的date。 Psinfo是Pstools好东西的一部分。
你可以参考上次成功的更新安装时间:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install REG_SZ: LastSuccessTime
这是一个格式为yyyy-MM-dd HH:mm:ss的date时间值。
从命令提示符处,可以使用以下wmic命令以html格式获取已安装更新的完整列表:
wmic qfe list full /format:htable > hotfixes.html
如果您更喜欢csv格式,请改用/ format:csv修饰符:
wmic qfe list full /format:csv > hotfixes.csv
我认为Get-Hotfix从版本3开始就可以通过PowerShell使用。
您可以在本地或远程系统上运行它。
本地:
# Get all hotfixes locallly Get-Hotfix # Look for a specific hotfix Get-Hotfix -Id KB2693643
要获取远程系统的修补程序,请将其与您的系统列表一起提供。 (注意:这需要在您查询的系统和运行Get-Hotfix的任何系统之间的防火墙上打开RPC)
Get-Hotfix -Computername YourComputer or Get-Hotfix -Computername Computer1, Computer2, Computer3 Get-Hotfix -Computername (Get-Content \path\to\your_list.txt)