≡ Menu

how to know my windows operating system installation time?

Installation of time windows will be saved in Win32_OperatingSystem WMI class. Alternatively it will be available in registry(HKLMSOFTWAREMICROSOFTWINDOWS NTCURRENTVERSIONINSTALLDATE). So, now you need to figure out your own way of querying values from either wmi or from registry. Being a fan of powershell, I want you to help with two line PS code to get the installation date/time.

$osinstalledtime = gwmi win32_operatingSystem
write-host $osinstalledtime.ConvertToDateTime($osinstalledtime.InstallDate)

That’s it. I will give you the details you need.

{ 3 comments… add one }
  • Willy Mcglone April 8, 2010, 5:39 pm

    awesome post dude

  • Sitaram Pamarthi April 8, 2010, 6:54 pm

    Thank you….

  • Uma December 13, 2010, 4:54 am

    I will give you the details you need.
    or It will give you the details you need.

Cancel reply

Leave a Comment