Solved

WMI scripts or similar for multiple machine specs

Posted on 2013-05-22
5
474 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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