Solved

WMI scripts or similar for multiple machine specs

Posted on 2013-05-22
5
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 38

Expert Comment

by:Rich Rumble
ID: 39199949
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 6

Author Comment

by:Sid_F
ID: 39200438
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
ID: 39200830
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 6

Author Comment

by:Sid_F
ID: 39200861
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

730 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