• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4056
  • Last Modified:

determine windows installation date

hi, im in an environment where i have to format and reload pc's regularly.
how can i find out when (what date) windows was installed on a machine?
my guess would be to look at some file dates ,but which?
i have posted on another site, but only received bad answers, with people taking wild guesses without checking
It's more for XP machines, but there are still a lot of 98 machines as well
thanks
0
jxharding
Asked:
jxharding
3 Solutions
 
wompeyCommented:
Hi jxharding,

PsInfo reports the install date, along with other useful info:
http://www.sysinternals.com/ntw2k/freeware/psinfo.shtml

Good Luck!  :)
0
 
wompeyCommented:
BTW - The easiest way is just to run psinfo.exe from the command prompt.  It will show you the info without needing to use any switches.
0
 
jxhardingAuthor Commented:
the utility is good thanks, it does the trick.

i just hope there is a remote possibility of using windows , or the registry just to get the date.

i'd like to bypass the psinfo copy procedure because for e.g. some of these pc's dont have any inputs like a stiffy drive or cdrom because the people screw around on the pc's then.

thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
wompeyCommented:
hmmm - if they're on a network, you can always just run it from your machine.

psinfo \\computername
0
 
jxhardingAuthor Commented:
yeah , that would be good, but higher entities forbid they come near the network.
there's gotta be a way that the program reads from the registry to get the value
0
 
wompeyCommented:
ohhhh I see...    well it looks like there IS a way, but it's kind of messy.

http://www.experts-exchange.com/Operating_Systems/WinNT/Q_10225603.html
0
 
wompeyCommented:
(I got directed to that info from here http://www.experts-exchange.com/Operating_Systems/Q_20533614.html ).

Wow - I always forget to look here in the experts-exchange first.  Googling for that info didn't turn up much info at all, so I looked here.
0
 
Michael PfisterCommented:
Here is a solution for XP:

You find the date under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate, but its a binary value and I don't know how to convert it. Or you use a VBScript:

-------------------------------------------------------------
' Script to retrive OS Installation date and time
Option Explicit
On Error Resume Next

Dim obj, objStdOut  

Set objStdOut = WScript.StdOut

' OS Install Date

For Each obj in GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery(_
"Select CurrentTimeZone, InstallDate From Win32_OperatingSystem")
With CreateObject("WbemScripting.SWbemDateTime")
.Value = obj.InstallDate
objStdOut.Writeline vbcrlf & DateAdd("n", -obj.CurrentTimeZone, .GetVarDate) & vbcrlf
End With
Next
WScript.Quit()

-------------------------------------------------------------

Save the text between the lines as InstDate.vbs. Then open a prompt and run

cscript InstDate.vbs

Have fun ..:-)
0
 
craylordCommented:
Just check the time/date stamp from c:\windows\repair\ folder. Specifically the SAM, SECURITY, or SOFTWARE files. These are created when windows is first installed.
0
 
CodedKCommented:
-->"These pc's dont have any inputs like a stiffy drive or cdrom"

What about a usb flash drive?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now