NTDOCAdministrator
(KiX Master)
2004-04-10 04:25 AM
My Computer Info - for Help Desk use PART 3

FYI There is an updated version 4 here...
My Computer Info - for Help Desk use PART 4

Here is another updated version of the My Computer Info script that was posted here.
My Computer Info - for Help Desk use PART 2
and the original one here
My Computer Info - for Help Desk use


This new version creates a .HTM file and then launches IE to display it.

The full script returns back more data then is listed here, but the image would be too large to post here.


Script last updated: 04/18/2004 4:26PM

KiXhelp home page


Download MyComputerInfo Script




Kdyer
(KiX Supporter)
2004-04-12 02:45 PM
Re: My Computer Info - for Help Desk use PART 3

Doc,

It looks like this does not get any info about the version of Office programs that I have installed. I am running office 2000.

If I do the following, I should be able to get the specifics

Code:

$apppaths='HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\'
$wordver=GETFILEVERSION(READVALUE($apppaths+'\winword.exe',''))



Maybe add in detection for TrendMicro, Avast, Sophos, AVG AV products. I know Symantec and McAfee are the most common.

Kent


jpg35
(Fresh Scripter)
2004-04-12 06:51 PM
Re: My Computer Info - for Help Desk use PART 3

Script is not picking up my Mcafee, otherwise this script is very cool man. Good work.

NTDOCAdministrator
(KiX Master)
2004-04-12 09:36 PM
Re: My Computer Info - for Help Desk use PART 3

Okay I've updated the code and posted an update. Make sure you flush your cache before attempting to download again.

The file header with the updated version should say

 
; ********** REVISION HISTORY ******************
; 001.03 *** 4/12/2004 11:38AM - By NTDOC

Kent,
I'm pulling back office versions from 97/2000/2002/2003 so far without a problem in our environment.

This code is processing the UNINSTALL keys and the APP PATH keys both. Then attempts to remove duplicates from the list of UNINSTALL if already found in APP PATH.

Found an issue with some EXE files that the BinFileVersion would comeback as 0.0.0.0 so I modified the code to show FileVersion for those cases.

I've also updated the code to show McAfee or None Detected.

Sorry, but I probably will not be adding other AV detection into this script, at least at this time.

Les said that the McAfee did not show for his 7.1 ePO version. I don't have any McAfee AV so can't test. If anyone can test and confirm and/or provide the proper code for McAfee both older and newer versions I'll be glad to update the code with it.

ps. I also corrected a typo that Les alerted me to.


jpg35
(Fresh Scripter)
2004-04-12 10:15 PM
Re: My Computer Info - for Help Desk use PART 3

Got the mcafee part working. What's in red is the changes i've made. Thanks again for the code.

Code:
  Select
Case $McAfeeInfo [0]<>""
$WL = $WL +'<p><b><font size="5" color="#800000">ANTIVIRUS INFORMATION</font></b></p>'+@CRLF
+'<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">'+@CRLF
+' <tr>'+@CRLF
+' <td width="20%"><b>ANTIVIRUS PRODUCT VERSION</b></td>'+@CRLF
+' <td width="20%">'+$McAfeeInfo [0]+'</td>'+@CRLF
+' <td width="20%"><b>DAT VERSION</b></td>'+@CRLF
+' <td width="20%">'+$McAfeeInfo [1]+'</td>'+@CRLF
+' </tr>'+@CRLF
+' <tr>'+@CRLF
+' <td width="20%"><b>ENGINE VERSION</b></td>'+@CRLF
+' <td width="20%">'+$McAfeeInfo [2]+'</td>'+@CRLF
+' <td width="20%"><b></b></td>'+@CRLF
+' <td width="20%"></td>'+@CRLF
+' </tr>'+@CRLF
+'</table>'+@CRLF



NTDOCAdministrator
(KiX Master)
2004-04-12 10:19 PM
Re: My Computer Info - for Help Desk use PART 3

LOL

Thanks, yes was just online with Les and found that out.

Guess it was too late when I wrote that up.

I've updated the file and posted it again with the fix and a minor name change as well to show McAfee

File should now read

; ********** REVISION HISTORY ******************
; 001.04 *** 4/12/2004 1:10PM - By NTDOC
; ********** Updatd code to correct McAfee not showing. Was calling an invalid array check.


NTDOCAdministrator
(KiX Master)
2004-04-12 10:36 PM
Re: My Computer Info - for Help Desk use PART 3

I have updated the code in this post to use this revised GetSoftwareInfo() UDF as well.

http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=116522


Trackz
(Fresh Scripter)
2004-04-16 10:47 AM
Re: My Computer Info - for Help Desk use PART 3

Question moved from URL: http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=&Number=116337


What I like to know, is:

What is this code doing?

For Each $Key in $App2
$DisplayName = ReadValue($HKLMAppPaths2 + "\" + $Key,'DisplayName')
$DisplayVersion = ReadValue($HKLMAppPaths2 + "\" + $Key,'DisplayVersion')
$DisplayName = IIF(InStr($SoftInfo,$DisplayName),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'ACDSee'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Acrobat 6.0'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Illustrator'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Photoshop 5.5'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Photoshop 6.0'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Photoshop 7.0'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Adobe Reader'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Alcohol 120'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Dreamweaver MX'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Fireworks MX'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Flash MX'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'FreeHand MX'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'LiveReg'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'LiveUpdate'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'MSN Messenger'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Macromedia FreeHand'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Microsoft Office FrontPage'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Microsoft Outlook'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Net2Phone'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'RoboHelp Office'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'SnagIt'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Symantec AntiVirus'),'',$DisplayName)
$DisplayName = IIF(InStr($DisplayName,'Windows Media Encoder'),'',$DisplayName)

Some records from $HKLMAppPaths2 = 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall'
don't show up in the output. Trying to find out why.
I tried to add lines to it, but nothing seems to change.

Any explanation?

Tim


NTDOCAdministrator
(KiX Master)
2004-04-16 08:24 PM
Re: My Computer Info - for Help Desk use PART 3

Those lines remove duplicate entries.

There are values in the UNINSTALL keys that do not use the keys I'm checking. If the value is BLANK the code says to ignore the value. I didn't want it to just display a name without a version (but if that's what you're looking for it can be modified by you to not ignore blanks)

DisplayName and DisplayVersion

Without creating a much more complex script I just don't see how to obtain EVERY entry there is. Some of the values in the UNINSTALL and APP PATHS keys just don't have enough information to tell you about the application.

If you need more information then you'll have to try something like Microsoft SMS or help me to make this script better by explaning how you think it can work better.

I hope to be updating this script either today or this weekend to support some more information like RUNNING PROCESSES and SERVICES and their states. Maybe some other information as well.

Do you have suggestions or want some other information that this script currently does not supply?


Trackz
(Fresh Scripter)
2004-04-16 10:45 PM
Re: My Computer Info - for Help Desk use PART 3

ok.. that explains a lot..

Some suggestions?
what happens now, is that it only shows applications that have a version number.
When I look at my own network, I see a lot of machines that have software installed, that doesn't contain a version number. Especially the once linked only in the UNINSTALL Paths

I edited the script a little to show some more applications.

Code:


For Each $Key In $App2
$DisplayName = ReadValue($HKLMAppPaths2 + "\" + $Key,'DisplayName')
$DisplayVersion = ReadValue($HKLMAppPaths2 + "\" + $Key,'DisplayVersion')
$Publisher = ReadValue($HKLMAppPaths2 + "\" + $Key,'Publisher')

*<Cut>*




If Len($DisplayName)
If Len($DisplayVersion)

If Len($Publisher)
$SoftInfo = $SoftInfo + Trim($DisplayName) + Chr(42) + Trim($Key) + Chr(42) + Trim($DisplayVersion) + Chr(42) + Trim($Publisher) + @CRLF
Else
$Publisher = "N/A"
$SoftInfo = $SoftInfo + Trim($DisplayName) + Chr(42) + Trim($Key) + Chr(42) + Trim($DisplayVersion) + Chr(42) + $Publisher + @CRLF
EndIf

Else
$DisplayVersion = "N/A"
If Len($Publisher)
$SoftInfo = $SoftInfo + Trim($DisplayName) + Chr(42) + Trim($Key) + Chr(42) + $DisplayVersion + Chr(42) + Trim($Publisher) + @CRLF
Else
$Publisher = "N/A"
$SoftInfo = $SoftInfo + Trim($DisplayName) + Chr(42) + Trim($Key) + Chr(42) + $DisplayVersion + Chr(42) + $Publisher + @CRLF
EndIf
EndIf






Not very nice but it does the trick.
At the lines I now add 'N/A' I want to add publishernames, by checking up on the program name, and changing this to the real value. Something I have to lookup once, and manually add it to the script, for the ones that don't show this Publisher

Like this:
If program=Nero { Publisher = Ahead }
etc.



Some results:

IBM ThinkPad - {B5599ECB-DA72-43EE-8A30-2C80396FF8BB}
AcDSee PowerPack 5 - {5058B085-AA79-41E5-A726-681B4C4B846E}

http://www.dutchhits.com/forumimages/output.bmp
Sorry for the big images.

These keys are returned as InstallPaths. Why are these returned, and would it be possible to gather data for these keys from another location

Most of these records are great to have in my opinion. But this is just a test for me, to see if this could be usefull on our network.

What I do miss, is an option to exclude programs/strings totally from this list.
In my list some programs now show up, and the only way to retrieve info on those, is too look at the compiledate of the program. (ie. modified date).
Version numbers can be equal, even if there are a lot of changes made. something we decided to do in the past, since some programs are changed very often (even more times a week) Although automated, it sometimes fails, and then problems in the program can occur.

That would be usefull for me, since we use a lot of small programs, that change in version weekly/monthly, and we're still not able to have that configured automatically ('failureless') on our networks.
I already have a seperate script that verifies those programs aside, and uninstall/reinstalls the current active version.


NTDOCAdministrator
(KiX Master)
2004-04-17 01:15 PM
Re: My Computer Info - for Help Desk use PART 3

Thanks for the feedback thoek

I'll try to implement the PUBLISHER idea this weekend if I get time.

As for the other ideas or issues with versions and exclusions switches I'm sorry, but I wrote this as an general information gathering tool, not as a decision making script.
If you have specific requirements to know when to update a file or group of files I would not use this script, I'd specifically target those files.

p.s. I've updated the script to include PROCESSES, SERVICES, HARD DRIVES, and STARTUP ITEMS.

Remember to clear your cache or at least the MyComputerInfo.zip from your cache before downloading again.

; 001.09 *** 04/17/2004 3:00AM - By NTDOC
; ********** Added support for Hard drives and Startup Items
; 001.08 *** 04/17/2004 2:25AM - By NTDOC
; ********** Added support for listing Services and their states

MyComputerInfo download
http://www.kixhelp.com/Downloads/MyComputerInfo.zip


NTDOCAdministrator
(KiX Master)
2004-04-19 01:45 AM
Re: My Computer Info - for Help Desk use PART 3

Okay Thoek,

I've updated this script again with the code and suggestions you presented for the PUBLISER field and still showing applications even if they don't have a version shown.

I've also added some minor descriptions per request of other users.
  
; 001.10 *** 04/18/2004 4:26PM - By NTDOC
; ********** Modified code to show Application even when version or publisher is blank


Trackz
(Fresh Scripter)
2004-04-19 10:31 AM
Re: My Computer Info - for Help Desk use PART 3

Thanx. Works fine for me..

Maybe change this section from:

Code:

For Each $Key In $App1
$Path = ReadValue($HKLMAppPaths1 + "\" + $Key,"")
If Len($Path)
If InStr($Path,'%') $Path = ExpandEnvironmentVars($Path) EndIf
If InStr($Path,'"') $Path=Split($Path,'"')[1] EndIf
$Path = IIf(InStr($Key,'WRITE.EXE'),'',$Path)
$Path = IIf(InStr($Key,'winzip.exe'),'',$Path)
If Trim(GetFileVersion($Path,'FileDescription')) <> ""
If Trim(GetFileVersion($Path,'BinFileVersion'))='0.0.0.0'
$FileVer = 'FileVersion'
Else
$FileVer = 'BinFileVersion'
EndIf
$SoftInfo = $SoftInfo + Trim(GetFileVersion($Path,'FileDescription')) + Chr(42)
+ $Path + Chr(42) + Trim(GetFileVersion($Path,$FileVer)) + @CRLF
EndIf
EndIf
Next



to

Code:

For Each $Key In $App1
$Path = ReadValue($HKLMAppPaths1 + "\" + $Key,"")
If Len($Path)
If InStr($Path,'%') $Path = ExpandEnvironmentVars($Path) EndIf
If InStr($Path,'"') $Path=Split($Path,'"')[1] EndIf
$Path = IIf(InStr($Key,'WRITE.EXE'),'',$Path)
$Path = IIf(InStr($Key,'winzip.exe'),'',$Path)
If Trim(GetFileVersion($Path,'FileDescription')) <> ""
If Trim(GetFileVersion($Path,'BinFileVersion'))='0.0.0.0'
$FileVer = 'FileVersion'
Else
$FileVer = 'BinFileVersion'
EndIf

$SoftInfo = $SoftInfo + Trim(GetFileVersion($Path,'FileDescription')) + Chr(42) + $Path + Chr(42) + Trim(GetFileVersion($Path,$FileVer))
+ Chr(42) + Trim(GetFileVersion($Path,'CompanyName')) + @CRLF
EndIf
EndIf
Next



This to retrieve Publisher data for the $HKLMAppPaths1.

Any ideas on the timing of this script?
I mean: what are other users experiences on how long it takes for this script to complete?
It varies a lot on our PCs.
From only 10 seconds, up to 45, or even more on antique machines.

I'm a number freak. Allways want to know how long something runs/executes, and in these cases even create graphical views of it from data daily stored in a db
Maybe this RunningTime() ( http://www.kixtart.org/ubbthreads/showflat.php?Number=81817 ) is an option to include in future version, and show the execution time on top of the results-page.
Easy way to see if there are slower machines on the network, or machines that might need some extra attention


NTDOCAdministrator
(KiX Master)
2004-04-19 06:09 PM
Re: My Computer Info - for Help Desk use PART 3

Thanks again T_Hoek for the feedback.

For my own personal preferences I don't think I'll change the code for CompanyName because looking at a couple of computers here none of the entries have that value which would simply create another column that basically had N/A in most if not all of the fields.

As for the timing, it is in there already.
$ScriptRunTime = $StopTime-$StartTime

It is placed lower down in the script. Again this is something of a personal taste. You can easily modify the HTML code to place it on top of your results as the information is already retrieved.




NTDOCAdministrator
(KiX Master)
2004-04-19 08:54 PM
Re: My Computer Info - for Help Desk use PART 3

oops.. Sorry T_Hoek

I actually did implement the CompanyName.

The reason is that it caused an array error issue in the RecordHTMLLogon() UDF.

If part2 has 4 elements then part1 has to have 4 elements as well. I also thought you were looking for a KEY name in the registry, but you're code reads the CompanyName from the actual .EXE if found. DOH! Updated code appears to work correctly now.

Thanks again.

I've updated and posted the updated code to my site.

; 001.11 *** 4/19/2004 11:38AM - By Ron Lewis
; ********** Corrected error introduced with revision 1.10 in GetSoftwareInfo array


Trackz
(Fresh Scripter)
2004-04-20 07:56 PM
Re: My Computer Info - for Help Desk use PART 3

Sorry, my mistake also.
Forgot to add the corresponding code..
Thanx for adding


Trackz
(Fresh Scripter)
2004-04-25 06:32 PM
Re: My Computer Info - for Help Desk use PART 3

Another idea for you which I'm trying to work out right now. Again for the software inventory.
I'm adding a timestamp to the registry together with the software-name (HKLM/software/Scriptlogic/LastInventory for example).
At this location I'm adding a line for each package with the corresponding inventory date.
Like: Code:
$swcheck=updateregistry('$HKLMss','$SoftwareName','$TimeNow','REG_SZ')



What I like to see is newly installed software, next to the full list.
Could be newly installed servicepacks, or any other software package.

I'm currently having some problems with comparing the two arrays.
- array with software from your script.
- array with all software added to the registry, after a previous run.
And updating/deleting where possible

I'll try to add some code soon, if I get any further with it.




NTDOCAdministrator
(KiX Master)
2004-04-25 10:16 PM
Re: My Computer Info - for Help Desk use PART 3

LOL - You trying to make your own SMS

Okay sounds good. Just remember there are Registry size limits (not sure how much and where you plan to store all the data is why I bring it up)

Registry Element Size Limits
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_element_size_limits.asp



Trackz
(Fresh Scripter)
2004-04-26 09:14 AM
Re: My Computer Info - for Help Desk use PART 3

Thanx for pointing that out.
I think it would be sufficient enough to only add a name, and versionnumber to the registry, and verify gathered data with this registry list,
So this wouldn't reach the limits


estradac
(Fresh Scripter)
2004-05-26 03:46 AM
Re: My Computer Info - for Help Desk use PART 3

IS there a way, someone can help me with this Helpdesk Form. I would like to add 3 options on the very top of this page.

First button= Email form to helpdesk
Second button= Print to default printer
Third Option= Add computer name to very Top and IP Address

Also when I change the kix.jpg to anything ..it doesn't appear...


NTDOCAdministrator
(KiX Master)
2004-05-26 03:51 AM
Re: My Computer Info - for Help Desk use PART 3

We can easily help you with items 1 & 3, but I'm not sure you can get KiX to fire off a print job.

When you change the image you have to make sure it it the correct path and that you or users have access to it.

Simple HTML code to modify and add the name to the Top. Look at the code that writes the HTML and simply add your lines where you want them.

As for mailing, it depends on what email you use. There are UDF scripts for most email, please check in the FAQ section on this board. If that is not enough information or you need further assistance please let us know.


NTDOCAdministrator
(KiX Master)
2004-05-26 03:58 AM
Re: My Computer Info - for Help Desk use PART 3

DOH! As pointed out by Les. This form is HTML so you could easily add some JScript or Java to do the printing.

Search the Web for some code to do such. Should be easy to find.


casacastellano
(Lurker)
2004-05-26 02:08 PM
Re: My Computer Info - for Help Desk use PART 3

Please excuse my ignornance but I am new to Kix and I would really like to know how to setup the form to add the 3 options that another individual mentioned.

It would be a great idea for my Helpdesk to have this feature. I searched threads for the answer but my novice abilities for KIX is killing me.

1. Mail to Helpdesk
2. Print to fault printer
3. Corporate logo on top of page

Thank you in advance


NTDOCAdministrator
(KiX Master)
2004-05-28 08:40 AM
Re: My Computer Info - for Help Desk use PART 3

Hello estradac and casacastellano,

I see both of you only have 3 and 4 posts on the board and don't seem to follow-up on the replies.

I'm willing to help you accomplish this task, but not if you're just going to grab some code and not reply back as to whether it works or what part doesn't work.

If you don't have time to communicate on the task, then I don't have time to waste on it either.

So, if you still want help then please reply and show some interest in working on it together.


LonkeroAdministrator
(KiX Master Guru)
2004-05-28 08:54 AM
Re: My Computer Info - for Help Desk use PART 3

jscript can't print...
and afaik, no script can't print from IE.

but with kix you can easily print almost any type of document.
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=83095&page=25&view=collapsed&sb=3&o=all&fpart=1


NTDOCAdministrator
(KiX Master)
2004-05-28 09:12 AM
Re: My Computer Info - for Help Desk use PART 3

Thanks Lonk.

I'll keep that in mind if these guys still want help.


LonkeroAdministrator
(KiX Master Guru)
2004-10-14 10:24 PM
Re: My Computer Info - for Help Desk use PART 3

damn, I gave all my home users (that I could reach) an diskette with this script.
with one change, it does write to diskette the data and not show it.

well, didn't really check the results before got one back.
the model part on the system is not included!
well, for many systems that does not matter but for IBM systems it's must.

also, instead of writing for each ... writeline() next, it could be written to do a collect to array and do a single writeline()
with diskette you see the difference.
instead of writing like current script (for about an minute) the write would go in seconds.


NTDOCAdministrator
(KiX Master)
2004-10-14 10:53 PM
Re: My Computer Info - for Help Desk use PART 3

Thanks for the feedback Jooel.

I'm not quite sure though what you mean by the writeline once idea from an array. If you have working code please email me a copy, or if you want to further discuss we can do so via MSN as well.

Thanks again.


LonkeroAdministrator
(KiX Master Guru)
2004-10-14 11:31 PM
Re: My Computer Info - for Help Desk use PART 3

ja, waited for you for hours but now you online.
we shall talk...


LonkeroAdministrator
(KiX Master Guru)
2004-10-14 11:34 PM
Re: My Computer Info - for Help Desk use PART 3

oh, and the OSID code can be replaced totally like you already seem to have (at least partially) done

LonkeroAdministrator
(KiX Master Guru)
2004-10-16 03:45 PM
Re: My Computer Info - for Help Desk use PART 3

k, doc...
did some test.
on non-cached drive (like diskette) the speed difference is huge.
using my way (only one writeline at the end of record udf):
Quote:

running Computer Inventory... Done.
Saving Info to Diskette...Success.
runtime: 13369


Invent done. press any key to quit.




and the current way:
Quote:

running Computer Inventory... Done.
Saving Info to Diskette...Success.
runtime: 169994


Invent done. press any key to quit.




for local HD where most likely the cache is enabled, it's not that bad.


Trackz
(Fresh Scripter)
2004-10-16 05:12 PM
Re: My Computer Info - for Help Desk use PART 3

Maybe you can try to write all data to HD, and put a command at the end to write data to floppy?

Sealeopard
(KiX Master)
2004-10-16 05:30 PM
Re: My Computer Info - for Help Desk use PART 3

The point is that a single WRITELINE of a longer string is more efficient than multiple WRITELINEs of shorter strings. This will be true independent of medium used but will be more noticable the slower the write speed of the destination medium is.

LonkeroAdministrator
(KiX Master Guru)
2004-10-16 05:44 PM
Re: My Computer Info - for Help Desk use PART 3

da.
the weird thing is.
for reading kixtart reads the whole file to mem to boost the read.
why isn't this the case with write?

keep the whole file in mem until close() is issued.


Sealeopard
(KiX Master)
2004-10-16 06:34 PM
Re: My Computer Info - for Help Desk use PART 3

In that case, WRITEs would not be committed until the close, which might have undesirable side effects.

NTDOCAdministrator
(KiX Master)
2004-10-16 10:04 PM
Re: My Computer Info - for Help Desk use PART 3

Thanks Jooel,

Please email me your code so that I can review your changes as well as tidy up the script in some other areas.



LonkeroAdministrator
(KiX Master Guru)
2004-10-16 11:57 PM
Re: My Computer Info - for Help Desk use PART 3

well...
there is nothing so much different.
the one referenced here basically is just the same as yours but the write is different.

should still add the FSAV support though...


LonkeroAdministrator
(KiX Master Guru)
2004-10-17 12:38 AM
Re: My Computer Info - for Help Desk use PART 3

k, added the FSAV part...

JTT
(Fresh Scripter)
2004-11-10 08:49 PM
Re: My Computer Info - for Help Desk use PART 3

I've been playing with this script and I've very impressed, everyone involved has done a great job with it. I've modified the output and am actually mapping a network drive and copying the file from the temp directory to the network drive so that we can update the information in a database for inventory purposes.

The problem I have is that the script runs fine if I run it alone, but when I call it from the logon script it doesn't copy the file. When I run the debug I see that it's calling the inventory script properly, but from that point I'm lost because I'm not sure how the CALL statement works past there.

Any help would be appreciated as I try to learn Kix.


Les
(KiX Master)
2004-11-10 08:54 PM
Re: My Computer Info - for Help Desk use PART 3

If it makes it past the CALL and actuall finds and runs the CALLed script, then you should consider it the same as inline code. Check for either implied paths or duplicate variables or duplicate file handles.

LonkeroAdministrator
(KiX Master Guru)
2004-11-10 08:59 PM
Re: My Computer Info - for Help Desk use PART 3

or go with shelling.
that is, instead of call, use shell or run:
run "wkix32 compinfo.kix"

to make it work alone in it's own space and time.


JTT
(Fresh Scripter)
2004-11-10 10:57 PM
Re: My Computer Info - for Help Desk use PART 3

Hey thanks for the info, I didn't even think about calling it using "RUN". I put that in place and that has solved my problem.

Thanks again!

Jason


RyanMcKay
(Lurker)
2004-11-15 08:23 PM
Re: My Computer Info - for Help Desk use PART 3

A humble suggestion:

can we add the system model to the script after the manufacturer.

In addition can you please post a version which writes all of this wonderful information to a text file


Thanks


R


NTDOCAdministrator
(KiX Master)
2004-11-15 08:32 PM
Re: My Computer Info - for Help Desk use PART 3

Hello Ryan. Yeah, somewhere along the way I left that out of the public version. I originally wrote this for work which had some non-generic information in it about our Company which I could not post. So I modified it and removed portions about our Company, but think I left some things out.

You can easily redirect the output to text I'd think with the Redirectouput command or using writeline as in the rest of the script towards the bottom in the logging.

Not sure when it will be done or ready, but Jooel is working on an all new version that will run from within IE that looks rather nice so far.


ClientMaster
(Fresh Scripter)
2005-01-19 11:46 AM
Re: My Computer Info - for Help Desk use PART 3

This is amazing..

Is it possible to export this data to an Access Database?


LonkeroAdministrator
(KiX Master Guru)
2005-01-19 11:59 AM
Re: My Computer Info - for Help Desk use PART 3

yes.

ClientMaster
(Fresh Scripter)
2005-01-24 01:43 AM
Re: My Computer Info - for Help Desk use PART 3

Jooel,
Thanks for the reply.
Would you be able to tell me how...
Would be greatly appreciated.


LonkeroAdministrator
(KiX Master Guru)
2005-01-24 02:09 AM
Re: My Computer Info - for Help Desk use PART 3

not that simple that I would go teaching db connection stuff on this thread.
this is already considered as hijaack.


kid
(Fresh Scripter)
2005-04-13 02:59 PM
Re: My Computer Info - for Help Desk use PART 3

Hello ,

Instead of launch the internet explorer to view the results, can you also save it as a HTM or excel file.
Do anyone know that code.

Thanks


NTDOCAdministrator
(KiX Master)
2005-04-13 10:12 PM
Re: My Computer Info - for Help Desk use PART 3

It is pretty much controlled for that stuff around line 156 of the code.

Think you need to first get your feet wet with the basics of KiXtart though before you start running or flying.


Code:
If Exist($HTMLLog)
Del $HTMLLog
EndIf

RecordHTMLLogon()

If Exist($HTMLLog)
Shell $Explorer + ' ' + $HTMLLog
EndIf
Exit 1



Sean
(Fresh Scripter)
2007-09-24 07:10 PM
Re: My Computer Info - for Help Desk use PART 3

Using CompInfo with version information:
; 2.01 *** 10/4/2005 6:02PM - By NTDOC

I have all my startup items duplicated in the HTML report, with both the user as ".Default" and "AUTHORITY\SYSTEM". Is there any way to make it so it does not dupe them?

APPLICATION COMMAND PATH USER
a3d a3d.dll Startup .DEFAULT
a3d a3d.dll Startup AUTHORITY\SYSTEM

Thank you for your time,
Sean Dorsey


NTDOCAdministrator
(KiX Master)
2007-09-24 09:47 PM
Re: My Computer Info - for Help Desk use PART 3

Please try it on another system and see if you have that problem.

I have not looked at the code in a long time but I had this similar thing happen on a system where WMI was damaged and I could not seem to fix it short of rebuilding the system.


Sean
(Fresh Scripter)
2007-09-26 02:51 PM
Re: My Computer Info - for Help Desk use PART 3

That did it. I ran it on another system and it was QUICK and had only usefull information.

The PC with the damaged WMI has to be replaced anyway, than you for the updated code.

I added support for McAfee 8.5, do you want me to post the code?

Thanks again.


NTDOCAdministrator
(KiX Master)
2007-09-27 06:11 AM
Re: My Computer Info - for Help Desk use PART 3

 Quote:
I added support for McAfee 8.5, do you want me to post the code?


Sure that would be great. Not sure when I'll update this code again but good to have updates if I do


Sean
(Fresh Scripter)
2007-09-27 09:16 PM
Re: My Computer Info - for Help Desk use PART 3


Added $mcafee85, TempDate1, TempDate2, TempDate3, and changed the McAfeeArray from 3 to 4.

Set value of $mcafee85 to the full path.

Played around with McAfee's date code so it came out easy to read. Added the code to print out the date code in the table at the end. I added the date code as sometimes seeing just the version number does not help.

Thanks again!


===================================

Function GetMcAfeeVirusInfo()
Dim $mcafee,$tvd,$mcafee85,$datnum,$engine,$product,$TempDate1,$TempDate2,$TempDate3,$McAfeeArray[4]
$mcafee='HKLM\SOFTWARE\McAfee\VirusScan'
$tvd='HKLM\SOFTWARE\Network Associates\TVD'
$mcafee85='HKLM\SOFTWARE\Network Associates\ePolicy Orchestrator\Application Plugins\VIRUSCAN8600'


;VS 8.5 (manually added by Sean Dorsey
KeyExist($mcafee85)
$datnum=ReadValue($mcafee85,'DATVersion')
$engine=ReadValue($mcafee85,'EngineVersion')
$product=ReadValue($mcafee85,'Version')
$DatDate=ReadValue($mcafee85,'DatInstallDate')
$TempDate1=SubStr($DatDate,1,4)
$TempDate2=SubStr($DatDate,5,2)
$TempDate3=SubStr($DatDate,7,2)
$DatDate=$TempDate2 + "-" + $TempDate3 + "-" + $TempDate1