Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Two ways to get the Windows InstalldateContent of Two ways to get the Windows Installdate.ps1MD5 Hash: 8877031638E801CFFBE4290857405F5D |
||
$path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
$id = get-itemproperty -path $path -name InstallDate $d = get-date -year 1970 -month 1 -day 1 -hour 0 -minute 0 -second 0 ($d.AddSeconds($id.InstallDate)).ToLocalTime().AddHours(2).ToString() -f "dd.MM.yyyy HH:mm:ss" $os = get-wmiobject win32_operatingsystem $os.ConvertToDateTime($os.InstallDate).ToString() -f "dd.MM.yyyy HH:mm:ss" | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |