JasonGW Posted April 14, 2005 Share Posted April 14, 2005 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 More sharing options...
SilverHaze420 Posted April 14, 2005 Share Posted April 14, 2005 VBS SCRIPTstrComputer = "."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 Nextref http://msdn.microsoft.com/library/default....ing_systems.asp Link to comment Share on other sites More sharing options...
RyanVM Posted April 14, 2005 Share Posted April 14, 2005 Run "systeminfo" from a command prompt. Link to comment Share on other sites More sharing options...
mdes Posted April 14, 2005 Share Posted April 14, 2005 See the Date/Time of the Windows folder (%SYSROOT%) Link to comment Share on other sites More sharing options...
SilverHaze420 Posted April 14, 2005 Share Posted April 14, 2005 I never even knew systeminfo command existed! I learn something new everytime I visit this website\forum, and thats like many times a day! Link to comment Share on other sites More sharing options...
mdes Posted April 14, 2005 Share Posted April 14, 2005 1 Link to comment Share on other sites More sharing options...
At0mic Posted April 14, 2005 Share Posted April 14, 2005 There's a registry key which tell's you how many seconds since January 1, 1970 windows was installed but I'm cant remember which key it is.You could also use wininfoEdit: cool I never knew systeminfo existed either. Link to comment Share on other sites More sharing options...
JasonGW Posted April 14, 2005 Author Share Posted April 14, 2005 VBS SCRIPTstrComputer = "."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 Nextref http://msdn.microsoft.com/library/default....ing_systems.asp<{POST_SNAPBACK}>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 More sharing options...
boooggy Posted April 14, 2005 Share Posted April 14, 2005 or u can use everest home. Link to comment Share on other sites More sharing options...
SilverHaze420 Posted April 14, 2005 Share Posted April 14, 2005 WoooooooooooooooooooooooooW Thats deep. Good idea tho, sounds like some work went into it Good luck with your script! Link to comment Share on other sites More sharing options...
benners Posted April 15, 2005 Share Posted April 15, 2005 swgreed came up with an idea here Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now