Solved

Date/Time stamp of when Windows XP was installed.

Posted on 2007-03-22
5
321 Views
Last Modified: 2011-09-20
Is the date and time of when a machine had Windows XP installed recorded anywhere in the system?  I'm looking through the registry and have searched and googled around the globalinterwebnets, and haven't come up with anything.

Just curious.
0
Comment
Question by:rregall1
5 Comments
 
LVL 26

Expert Comment

by:Pber
ID: 18772979
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18773025
Save this as DateInstalled.vbs

For Each os In GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
wscript.echo "This system was installed on " & mid(os.InstallDate,5,2) & "/" & mid(os.InstallDate,7,2) & "/" & left(os.InstallDate,4)
0
 
LVL 34

Accepted Solution

by:
sramesh2k earned 125 total points
ID: 18773287
Determine when the operating system was installed on a computer:
http://windowsxp.mvps.org/getosdate.htm
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18774325
I suppose mine didn't work because I left out the 'next'.
But it's basically a subset of what the accepted post was... :(

For Each os In GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
wscript.echo "This system was installed on " & Mid(os.InstallDate, 5, 2) & "/" & Mid(os.InstallDate, 7, 2) & "/" & Left(os.InstallDate, 4)
Next
0
 

Author Comment

by:rregall1
ID: 18775675
Pber- The solution is probably somewhere in that site, or the links provided in those posts, but as we all know:  He who provides the solution with the least clicks required, wins the points. ;)  Thanks for the response.

sirbounty - Yup, it errored out when I ran it.  It's always the minute details in life that trip us up, eh?  Thanks for the response.

sramesh2k - Perfect.  Thanks for the response.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now