How to Find the Windows Installation Date and Time

This post shows you the different methods using which you can determine the original installation date and time of your Windows installation. The information applies to all versions of Windows, including Windows 10. Note that in Windows 10, the following methods show the installation date of the most recent feature update you installed, and not the install date and time of your 1st Windows 10 build.

How to Find Windows Installation Date and Time

1. Using SystemInfo

Open a Command Prompt window and type:

systeminfo

find windows installation date and time

To output only the Original Install Date field, type:

systeminfo | findstr Date

2. Using WMI/WSH Script

Copy the following VBScript code to Notepad, save with .vbs extension and run it.

Set dtmInstallDate = CreateObject( _ 
"WbemScripting.SWbemDateTime")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& "." & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem In colOperatingSystems
	MsgBox "Install Date: " & _ 
	getmydate (objOperatingSystem.InstallDate)
Next

Function getmydate(wmitime)
	dtmInstallDate.Value = wmitime
	getmydate = dtmInstallDate.GetVarDate
End Function

find windows installation date and time

3. Using WMIC (WMI command-line)

wmic os get installdate

find windows installation date and time

The date/time stamp is shown in the following WMI time format:

yyyymmddHHMMSS

..which translates to:

12/21/2015, 19:29:26

or

12/21/2015, 7:29:26 PM

4. Using PowerShell

This again uses WMI, but the only difference is it’s run from PowerShell and uses PowerShell’s built-in ConvertToDateTime function.

([WMI]'').ConvertToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate)

find windows installation date and time

5. Check Windows Registry

The Windows installation date and time is stored in the following registry key in the values named InstallDate and InstallTime:



HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate

find windows installation date and time registry installdate

The InstallDate value data contains the Unix time which represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC).  To convert the data into a readable format, you can the Epoch converter website or run a couple of PowerShell commands.

via Epoch Converter site

Visit the Epoch converter website and type the timestamp you found in the registry, and convert it to human date format.

find windows installation date and time registry installdate
Convert Unix time to readable date/time

Using PowerShell

In the PowerShell window, run these two commands:

$date = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\' | select -ExpandProperty InstallDate

(Get-Date "1970-01-01 00:00:00.000Z") + ([TimeSpan]::FromSeconds($date))

find windows installation date and time powershell installdate

The above shows the date and time of the current Windows 10 feature update (v1903) installation.

RELATED: Find the Windows 10 Build/Version Upgrade History on your computer

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.

1 thought on “How to Find the Windows Installation Date and Time”

Leave a Comment