Jump to content

How to find the DATE WinXP was first installed?


JasonGW

Recommended Posts

I'm hoping to be able to collect this from the registry or something, preferably using WMI, VBS, or worst case scenario, KIX. I thought I had read about a key that holds the info, but I must be googling mindlessly because I can't find a **** thing about it.

Thanks!!!

Jason

Link to comment
Share on other sites


VBS SCRIPT

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
   & "{impersonationLevel=impersonate}!\\" _
   & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
   ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
   Wscript.Echo "Install Date: " _
      & objOperatingSystem.InstallDate
Next

ref http://msdn.microsoft.com/library/default....ing_systems.asp

Link to comment
Share on other sites

VBS SCRIPT

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
   & "{impersonationLevel=impersonate}!\\" _
   & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
   ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
   Wscript.Echo "Install Date: " _
      & objOperatingSystem.InstallDate
Next

ref http://msdn.microsoft.com/library/default....ing_systems.asp

Thanks, this should be helpful.

What we're doing is building a web-based system to track our network assets and the status of those assets. We've got a few scripts that run throughout the day and dump their results to a MySQL table via ODBC, and then we query both the table and then AD to compare results and figure out where trouble might be lurking, etc. This new piece will help to find out who might have issues based on the version of my unattended installation setup, if a bug or something were to go unchecked into the environment.

Thanks!!!

Jason

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...