
This is the date with UTC+/-0:00, or "(UTC) Coordinated Universal Time" time zone. Then run systeminfo.exe find /i "Original Install Date"Ģ) Get the UNIX Timestamp found in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate for me is 16-Feb-10 6:09:20 AM If you change it while running current Powershell session it will be wrong.ġ) Change you computer time zone (right-click on you clock->Adjust date/time->Adjust time zone) to the time zone where windows was installed, or first turned on. You must restart Powershell to produce the correct calculation, taking into account UTC time zone. It's the wrong date, it doesn't store time zone info where the computer was initially installed. In other words, if you have installed you computer in Seattle, WA and moved to New York,NY the HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate will give you the date in NY time zone, not in Seattle time zone where Windows was original installed. Or you could say it always stores the Western European Time (WET) timezone. It does not store the original time zone, in which it was created. The UNIX timestamp is defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC) the Western European Time (WET) time zone, Thursday, 1 January 1970 and not counting leap seconds. The definition of a UNIX timestamp is time zone independent.


See belowĬhanging timezone while running same Poweshell_ISE instance will fail Now let me explain ConvertToDateTime is not converting the CMI datetime datatype correctly period.

System Volume Information is automatically created by Windows when it detects a new partition and it stores important things such as:
