Is there a way that I can get the date that the current OS (for example, Windows 7) was installed?
3 Answers
Command prompt
- Open a command prompt.
Type or paste the following command, and press Enter:
wmic os get installdate
Remarks
Works regardless of the system locale.
The value is in is displayed in the UTC format and is not affected by changes in time zone or daylight saving time.
Example output
InstallDate
20140519224731.000000+120
The format is yyyyMMddHHmmss. Anything after the period represents the number of milliseconds, which can be safely ignored. The value is parsed this way:
2014year05month19day22hour47minutes31seconds
PowerShell
Assuming it's available, you can run the following commands:
$os = Get-WmiObject Win32_OperatingSystem
$os.ConvertToDateTime($os.InstallDate)
Example output
Monday, May 19, 2014 10:47:31 PM
- 14,901
Start the command prompt (Win+R -> "cmd" -> press return)
Enter the following command:
cmd /k systeminfo | find "Original Install Date"
P.S. I found the information here.
EDIT: The following PowerShell command works for Windows installations with locales other than English.
Start PowerShell (Win+R -> "powershell" -> press return)
Enter the following command:
([WMI]'').ConvertToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate)
P.S. I got the info from here.
- 10,885
For windows 7 Press Win+R or click start and then run
type cmd and press enter to start command prompt. Inside command prompt, type
systeminfo | find "Install Date"
and press enter, after a few seconds, you should get install date.
For Windows XP it's simpler, simply go to C: and right click on WINDOWS folder and select properties, and look at date the folder was created.