HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-12-2007, 03:04 AM
CoolGunS
 
Posts: n/a
Default Install Date of XP - Audit

Hi,

I need to audit all the Windows XP Pro machines in our organisiation
and determine when XP was install on each computer. I'm kind of stuck
for a way to do this. One suggestion was to use systeminfo | find /I
"install date" however this doesn't work on XP, only on our servers.

Has anyone got any bright ideas? I want to pipe the results out to a
common shared file that also appends the machine name alont with the
install date.

Thanks in advance.

Reply With Quote
Sponsored Links
  #2  
Old 04-12-2007, 03:25 AM
Shenan Stanley
 
Posts: n/a
Default Re: Install Date of XP - Audit

CoolGunS wrote:
> Hi,
>
> I need to audit all the Windows XP Pro machines in our organisiation
> and determine when XP was install on each computer. I'm kind of
> stuck for a way to do this. One suggestion was to use systeminfo |
> find /I "install date" however this doesn't work on XP, only on our
> servers.
>
> Has anyone got any bright ideas? I want to pipe the results out to a
> common shared file that also appends the machine name alont with the
> install date.



systeminfo | find /i "install date"

Works fine in Windows XP Professional.

Somewhat messy - but it should get tyou started... If you use PSEXEC to run
on each machine (third party app) or a startup script or maybe you could
just use PSINFO on each machine - whatebver...

all one line... (batch)

systeminfo | For /f "usebackq Tokens=2 delims=[:]" %%j in (`find /i
"Original Install Date"`) do echo %computername%, "%%j" >>
path:\to\text.txt

You could clean that up and even use \\servername\sharename for the path to
file if the share is open to authenticated users/computers for writing.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #3  
Old 04-12-2007, 03:26 AM
Bill James
 
Posts: n/a
Default Re: Install Date of XP - Audit

Copy the following code, paste it into Notepad, save with a .vbs extension.

For Each oItem in GetObject("winmgmts:{impersonationLevel=impersonat e}")._
ExecQuery("Select CurrentTimeZone, InstallDate From Win32_OperatingSystem")
With CreateObject("WbemScripting.SWbemDateTime")
.Value = oItem.InstallDate
WScript.Echo "OS Installed: " & DateAdd("n", _
-oItem.CurrentTimeZone, .GetVarDate)
End With
Next

--

Bill James


"CoolGunS" <coolguns@hotmail.com> wrote in message news:1176347096.624535.33720@l77g2000hsb.googlegro ups.com...
> Hi,
>
> I need to audit all the Windows XP Pro machines in our organisiation
> and determine when XP was install on each computer. I'm kind of stuck
> for a way to do this. One suggestion was to use systeminfo | find /I
> "install date" however this doesn't work on XP, only on our servers.
>
> Has anyone got any bright ideas? I want to pipe the results out to a
> common shared file that also appends the machine name alont with the
> install date.
>
> Thanks in advance.
>

Reply With Quote
  #4  
Old 04-12-2007, 03:27 AM
Carey Frisch [MVP]
 
Posts: n/a
Default Re: Install Date of XP - Audit

Belarc Advisor: http://www.belarc.com/free_download.html

--
Carey Frisch
Microsoft MVP
Windows Client

--------------------------------------------------------------------------------------------------

"CoolGunS" wrote:

| Hi,
|
| I need to audit all the Windows XP Pro machines in our organisiation
| and determine when XP was install on each computer. I'm kind of stuck
| for a way to do this. One suggestion was to use systeminfo | find /I
| "install date" however this doesn't work on XP, only on our servers.
|
| Has anyone got any bright ideas? I want to pipe the results out to a
| common shared file that also appends the machine name alont with the
| install date.
|
| Thanks in advance.

Reply With Quote
  #5  
Old 04-12-2007, 03:31 AM
John John
 
Posts: n/a
Default Re: Install Date of XP - Audit

The installation date is recorded in the InstallDate value at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion The
value represents the number of seconds since January 1st 1970. Luckily
you don't have to calculate the value, John Savill has made some nifty
utilities that will do it for you Cmd Info, or Win Info. The tools can
be used to query any machine on the domain.
http://www.savilltech.com./download.html

John


CoolGunS wrote:

> Hi,
>
> I need to audit all the Windows XP Pro machines in our organisiation
> and determine when XP was install on each computer. I'm kind of stuck
> for a way to do this. One suggestion was to use systeminfo | find /I
> "install date" however this doesn't work on XP, only on our servers.
>
> Has anyone got any bright ideas? I want to pipe the results out to a
> common shared file that also appends the machine name alont with the
> install date.
>
> Thanks in advance.
>

Reply With Quote
  #6  
Old 04-12-2007, 03:41 AM
Carey Frisch [MVP]
 
Posts: n/a
Default Re: Install Date of XP - Audit

PsInfo is a command-line tool that gathers key information about the local
or remote Windows NT/2000 system, including the type of installation,
kernel build, registered organization and owner, number of processors and
their type, amount of physical memory, the install date of the system, and if
its a trial version, the expiration date.
http://www.microsoft.com/technet/sys...on/PsInfo.mspx

--
Carey Frisch
Microsoft MVP
Windows Client

--------------------------------------------------------------------------------------------------

"CoolGunS" wrote:

| Hi,
|
| I need to audit all the Windows XP Pro machines in our organisiation
| and determine when XP was install on each computer. I'm kind of stuck
| for a way to do this. One suggestion was to use systeminfo | find /I
| "install date" however this doesn't work on XP, only on our servers.
|
| Has anyone got any bright ideas? I want to pipe the results out to a
| common shared file that also appends the machine name alont with the
| install date.
|
| Thanks in advance.

Reply With Quote
  #7  
Old 04-12-2007, 04:32 AM
CoolGunS
 
Posts: n/a
Default Re: Install Date of XP - Audit

Thanks for your responses. They are all helpful. I do still have one
issue tho. When I run systeminfo on any of our XP machines I get this

c:\systeminfo
ERROR: Not found.

this is what made me think systeminfo didn't work on XP????? This is
my preferred option because I can pipe this out and append machine
names and results all into one file. We have 500 machines to audit.
Any ideas why all the XP machines Ive tried this on return an error?
The other tools work fine eg:


Output from CMDinfo =

Version type Full Version
Installation date 07 April 2005, 07:48:01
Owning Org Knight Frank Australia
Owner name Information Technology
Build number 2600
System root C:\WINDOWS
OS type Microsoft Windows XP
Plus version Not Available
Service Pack Service Pack 2
Processor Type Multiprocessor Free
Product Type Windows NT Workstation
Source Path C:\I386
Expiry date Not Applicable




Reply With Quote
  #8  
Old 04-12-2007, 04:44 AM
Shenan Stanley
 
Posts: n/a
Default Re: Install Date of XP - Audit

CoolGunS wrote:
> Thanks for your responses. They are all helpful. I do still have one
> issue tho. When I run systeminfo on any of our XP machines I get
> this
>
> c:\systeminfo
> ERROR: Not found.
>
> this is what made me think systeminfo didn't work on XP????? This is
> my preferred option because I can pipe this out and append machine
> names and results all into one file. We have 500 machines to audit.
> Any ideas why all the XP machines Ive tried this on return an error?
> The other tools work fine eg:
>
>
> Output from CMDinfo =
>
> Version type Full Version
> Installation date 07 April 2005, 07:48:01
> Owning Org Knight Frank Australia
> Owner name Information Technology
> Build number 2600
> System root C:\WINDOWS
> OS type Microsoft Windows XP
> Plus version Not Available
> Service Pack Service Pack 2
> Processor Type Multiprocessor Free
> Product Type Windows NT Workstation
> Source Path C:\I386
> Expiry date Not Applicable


Then your PATH is ******* up...

Start button --> RUN --> CMD --> OK --> PATH --> <ENTER>

C:\WINDOWS\system32 in there?

try this:

Start button --> RUN --> CMD --> OK -->

%SystemRoot%\system32\systeminfo.exe | find /i "install date"

--> <ENTER>

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #9  
Old 04-12-2007, 07:15 AM
BigJim
 
Posts: n/a
Default Re: Install Date of XP - Audit

from the run command, run "command" then systeminfo
"CoolGunS" <coolguns@hotmail.com> wrote in message
news:1176347096.624535.33720@l77g2000hsb.googlegro ups.com...
> Hi,
>
> I need to audit all the Windows XP Pro machines in our organisiation
> and determine when XP was install on each computer. I'm kind of stuck
> for a way to do this. One suggestion was to use systeminfo | find /I
> "install date" however this doesn't work on XP, only on our servers.
>
> Has anyone got any bright ideas? I want to pipe the results out to a
> common shared file that also appends the machine name alont with the
> install date.
>
> Thanks in advance.
>



Reply With Quote
  #10  
Old 04-12-2007, 08:10 AM
Detlev Dreyer
 
Posts: n/a
Default Re: Install Date of XP - Audit

"CoolGunS" <coolguns@hotmail.com> wrote:

> Thanks for your responses. They are all helpful. I do still have one
> issue tho. When I run systeminfo on any of our XP machines I get this
>
> c:\systeminfo
> ERROR: Not found.


First, "Systeminfo.exe" is available under WinXP Pro only. Although
running under WinXP Home as well, it's not present there by default.

Second, "Systeminfo.exe" (if present) is located in %windir%\System32
rather than the C:\ root directory.

--
d-d
Reply With Quote
Sponsored Links

Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger