如何找到Windows的安装时间和日期? [英] How do I find the install time and date of Windows?
问题描述
这听起来像是一个疯狂的问题,但是我如何(希望通过API/注册表键)找出Windows的安装时间和日期?
This might sound like a little bit of a crazy question, but how can I find out (hopefully via an API/registry key) the install time and date of Windows?
到目前为止,我能想到的最好的办法是在C:\ Windows中查看各种文件,然后尝试猜测……但这并不是一个很好的解决方案.
The best I can come up with so far is to look at various files in C:\Windows and try to guess... but that's not exactly a nice solution.
推荐答案
在regedit.exe
中,转到:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate
它是自1970年1月1日以来的秒数.(注意:对于Windows 10,该日期将是最后一次更新功能的安装日期,而不是原始安装日期.)
It's given as the number of seconds since January 1, 1970. (Note: for Windows 10, this date will be when the last feature update was installed, not the original install date.)
To convert that number into a readable date/time just paste the decimal value in the field "UNIX TimeStamp:" of this Unix Time Conversion online tool.
这篇关于如何找到Windows的安装时间和日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!