0

Is there a way that I can get the date that the current OS (for example, Windows 7) was installed?

Devid
  • 6,455
  • 13
  • 58
  • 75
user67275
  • 2,353

3 Answers3

3

Command prompt

  1. Open a command prompt.
  2. 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:

  • 2014 year
  • 05 month
  • 19 day
  • 22 hour
  • 47 minutes
  • 31 seconds

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
and31415
  • 14,901
2

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.

Vinayak
  • 10,885
1

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.

Devid
  • 6,455
  • 13
  • 58
  • 75
slavmaf
  • 434