A big fat script inventory application I've been writting ...

Status
Not open for further replies.

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
I've been working as a consultant for almost 4 years now and this is something I've cobbled together over the years.

http://suspendedmotion.dyndns....ipts/documentor2.wsf - wsf file
http://suspendedmotion.dyndns....ripts/documentor2.js - jscript file

I know this overlaps in a million way with what some other applications do, but is unique in that the UI is completely DHTML, it allows for the user to put in multiple credentials, and it will output to onscreen as well as to text file, Excel or Visio.

I have plans to do more with it, but I can't help but wonder if it'd be worth the trouble as Windows Scripting Host has basically been dumped into Microsoft's legacy and security support bin.

Anyway, let me know how you like it? Does the UI make sense? Does the clicking on button to select what you want in your report seem intuitive? Any feature requests?

Edit: OK, the UBB URL code isn't working for me. If the link doesn't download save that file as a text file with a .wsf to a drive somewhere.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by Rick25:
Very nice! One question is it possible to put multiple server names in at once? Tried ; and , as separators but it didn't like it. CSV input file would be awesome.

Not yet, but that one of my planned additions (that and scan IP subnets instead of necessarily depending on AD to get computer accounts). Right now I am working on making the Visio output draw an actual map connecting Ethernet subnets. After that I was planning on heading into Printer territory and then adding them to the Visio feature as well.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by Phiber:
bug report:

On a Core2duo machine with Gigabyte EP43-DS3L motherboard, the processor is listed as "Intel Pentium III Xeon processor" when the machine is running Windows XP SP3 x32.

On the same hardware (running Vista Ultimate SP1 x64 this time), your script correctly reports the processor as "Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz"

My guess is that this is problem with Windows (more specifically WMI or chipset inf) than with the script. On your Windows XP SP3 side when you run msinfo32.exe under System Summary what is listed in the Processor field? It should be the same as what my script is reporting.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by Wudan Master:

The catch is you ran it as admin and it added a back door account to your domain -- ;) --


Nah, nothing like that. I don't think it'd be that easy to hide anyway, the script file is all out there in plain text anyone can look and see what it is up to. I could encode the script to jse but it isn't hard at all for someone to just download a script that decodes it right back.
 

OregonLAN

Ars Scholae Palatinae
1,268
Originally posted by Ranma:
Originally posted by Rick25:
Very nice! One question is it possible to put multiple server names in at once? Tried ; and , as separators but it didn't like it. CSV input file would be awesome.

Not yet, but that one of my planned additions (that and scan IP subnets instead of necessarily depending on AD to get computer accounts). Right now I am working on making the Visio output draw an actual map connecting Ethernet subnets. After that I was planning on heading into Printer territory and then adding them to the Visio feature as well.

Thanks for the bugfix. And, to the above, that would be really cool.
 
Originally posted by Ranma:
Originally posted by Wudan Master:

The catch is you ran it as admin and it added a back door account to your domain -- ;) --


Nah, nothing like that. I don't think it'd be that easy to hide anyway, the script file is all out there in plain text anyone can look and see what it is up to. I could encode the script to jse but it isn't hard at all for someone to just download a script that decodes it right back.


indeed, however I wonder if many people downloaded and ran it as admin without even checking.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by Wudan Master:

indeed, however I wonder if many people downloaded and ran it as admin without even checking.


Yeah, it probably isn't a great idea. The only thing I can possibly say in their defense is it was posted by someone with an absolutely ancient ArsForum account. I can slip eicar in a file sometime and see if a scanner finds it. -- :D --
 

Rick25

Ars Tribunus Militum
2,511
Subscriptor
Originally posted by Ranma:
Not yet, but that one of my planned additions (that and scan IP subnets instead of necessarily depending on AD to get computer accounts). Right now I am working on making the Visio output draw an actual map connecting Ethernet subnets. After that I was planning on heading into Printer territory and then adding them to the Visio feature as well.

Thanks! Those would be awesome features
 

The ToOTaLL

Ars Scholae Palatinae
1,174
Very, very nice script here, kudos! I as well work as a consultant that has been using the likes of Belarc, WMI Asset Logger, SpiceWorks, Beacon Auditor (from a local company Intepro) and so on, in the quest for an all encompassing solution that will provide key information such as apps, Microsoft product keys for auditing, etc. I’ve tried this as a few clients and it’s doing a very nice job of providing the same level of results as all of the above in a very self contained package that I can easily dump to Excel and then take back to the office for building network documentation.

In your recent endeavors have you seen an issue with new Dell machines (in this case, the Precision M6300 workstations) where WMI seems to be reporting the MAC address of the machine and not the Dell service tag?
 

NoodleGuy

Seniorius Lurkius
1
Love this script!

Do you have a website or anything where this is hosted? It would be nice to put a link to either this thread or your site so we can find updates in the future. Had a little trouble remembering where I got the script from originally.

Found a bug though in 2.0.6. When I export to text I get a message "Line: 3726, Char 33, 'length' is null or not an object, 800A138F'
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Sorry, I was inbetween ISPs there for a while. The links should be good again. Also, I had another update thread but I'll include some of the info here ...

I've added the ability to scan a manual list of computers, you just need to to create a text file with your computer names in it. You can delimit the computer names with commas, new lines, or both. Just put this text file in the same folder as the script file.

I've also added some Windows Event Log stuff, it isn't very sophisticated right now but I'll be working on improving it in the future.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by NoodleGuy:
Love this script!

Do you have a website or anything where this is hosted? It would be nice to put a link to either this thread or your site so we can find updates in the future. Had a little trouble remembering where I got the script from originally.

If you could help me get to the bottom of it, can you run a scan against just your local machine (don't enter any credentials, or computername, and make sure there isn't a targets.txt file and this happen automatically when you click the "Run" button) and try dumping that out to Excel.

Found a bug though in 2.0.6. When I export to text I get a message "Line: 3726, Char 33, 'length' is null or not an object, 800A138F'

Yeah, I think I've squashed it now if you get the latest. If it's still there please let me know. I'm not sure what is going on but in some peoples environments this appears and in others it doesn't.
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Would you be able to do me a favor and run it against a targets.txt file for me and see what happens? That is to say create a text file named targets and only put one or two systems in it and see if the error still occurs.

I think I have a condition where I'm expecting there to be an array but it's either null or just a variant. I suspect this is because of bad data read from WMI (which is more common then you'd think).
 

Ranma

Ars Scholae Palatinae
1,422
Subscriptor
Originally posted by avial:
I am getting the 'length' is null or not an object for 2.0.6 as well when exporting to either Excel or text, running the .wsf from a network share at line 3726. When running locally, I get an error at line 3965 instead.

Line 3726 is while dumping to text, what line gives you the error when dumping to Excel?
 

Quitch

Ars Praefectus
3,244
Subscriptor
Rating applied -- :) --

One issue I ran into is where it was failing to pull information from computer X but did so from Y where both use the same OS, on the same domain using the same GPOs and performing roughly the same function (non-working ones run DFS where the working ones don't).

I can see blocks against my IP in the logs, but I'm just trying to understand why one would block and one does not. How is the connection made by the script?
 
Status
Not open for further replies.