如何找到Windows的安装时间和日期? [英] How do I find the install time and date of Windows?

查看:445
本文介绍了如何找到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆