Solved

Date/Time stamp of when Windows XP was installed.

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

829 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