Solved

Date/Time stamp of when Windows XP was installed.

Posted on 2007-03-22
5
326 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
An article on effective troubleshooting
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

730 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