[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

WMI scripts or similar for multiple machine specs

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
Sid_F
Asked:
Sid_F
  • 2
  • 2
1 Solution
 
Rich RumbleSecurity SamuraiCommented:
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
 
Sid_FAuthor Commented:
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
 
Rich RumbleSecurity SamuraiCommented:
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
 
Sid_FAuthor Commented:
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now