Solved

WMI scripts or similar for multiple machine specs

Posted on 2013-05-22
5
432 Views
Last Modified: 2013-12-03
My Dilemma, I need to retrieve machine spec's for a large number of machines on a daily basis. The machines are on a production line. Some will have hard disks some will not. I need something that can basically retrieve details from the bios like processor speed, mother board type, memory, serial number etc and export it to a CSV file or else write to the same CSV file. I am looking at WMI code creator and it seems good but I think I would need something at the boot level. I'm open to enterprise software also if I can find the right one. Thanks.
0
Comment
Question by:Sid_F
  • 2
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Rich Rumble
Comment Utility
You'll need linux, or to use a bart-pe type of program as windows can't be used "diskless", plus linux would be faster and get you the same info. boot a "live" cd/dvd/usb and run a few commands and it could write to a USB drive.
dmidecode will get you a lot of hardware info, like CPU speed,type and numbers, as well as the asset tag's or serials that are stored in the bios, I think there are roughly 40 items dmidecode will get info for you on: http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/
Otherwise, use a bootable bart-pe image, and run lots and lots of "wmi" commands, but you'll have to boot into windows first. You could be booted into a CLI linux OS in under 30 seconds, and if your using a USB boot device you could potentially write to a separate partition on the USB that records the dmidecode output...
sudo demidecode >>/mnt/usb2/computers.txt
Granted it's not CSV'd but that could be accomplished pretty easily I'm sure if you opened another TA like the perl or linux in general topic areas.

-rich
0
 
LVL 5

Author Comment

by:Sid_F
Comment Utility
Ok I think this sounds like it could work. If I incorporated Altiris into this I could potentially set the machine to PXE boot to the BartPE CD hosted on linux and then in some way write the data to the altiris CD. I'm thinking a CSV file for each asset tag machine will become cumbersome and I would be better off writing to the altiris DB but this is an area I have no knowledge of.
0
 
LVL 38

Accepted Solution

by:
Rich Rumble earned 500 total points
Comment Utility
Writing to a CD would be the last thing I'd do, USB bootable images are very easy to work with, or even using linux to FTP a result to a server on a network. Since your talking about PXE booting, you might as well use that same network connection. Writing to a DB is fine, but don't bring altiris into it... You can have someone in another topic area help you automate the dmidecode to write to a db or csv on the network, or easier yet, to a separate partition on the USB drive.
-rich
0
 
LVL 5

Author Comment

by:Sid_F
Comment Utility
Thanks sorry I wasn't clear in my post above. I think Altiris has some asset tagging functionality in some of the modules that can get this data.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now