Install Date of XP - Audit

C

CoolGunS

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.
 
S

Shenan Stanley

CoolGunS said:
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.
 
B

Bill James

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

For Each oItem in GetObject("winmgmts:{impersonationLevel=impersonate}")._
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
 
C

Carey Frisch [MVP]

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

--
Carey Frisch
Microsoft MVP
Windows Client

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

:

| 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.
 
J

John John

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
 
C

Carey Frisch [MVP]

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/sysinternals/SystemInformation/PsInfo.mspx

--
Carey Frisch
Microsoft MVP
Windows Client

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

:

| 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.
 
C

CoolGunS

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
 
S

Shenan Stanley

CoolGunS said:
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 screwed 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>
 
D

Detlev Dreyer

CoolGunS said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top