Solved

Script to gather BIOS/manufacture dates for computers in a domain

Posted on 2012-03-20
5
784 Views
Last Modified: 2012-04-16
Hi,
I've been requested by a client to provide an aging report for their systems.  I figured the easiest way to do this is to get the BIOS release/manufacture date for each computer.  Unfortunately, our RMM tool does not have this functionality built in, so I was looking for a script I could run on the domain that will gather this info (all I need is computer name and BIOS date) and export it into a TXT or CSV file.  The script can be VB, WMI, Powershell or anything, I don't care as long as it works.  If anyone can help out it would be much appreciated.  Thanks!
0
Comment
Question by:BSCITECH1
  • 3
5 Comments
 
LVL 17

Expert Comment

by:vb_elmar
ID: 37744012
This is how to get the computer name.
getComputerName.zip
0
 
LVL 17

Accepted Solution

by:
vb_elmar earned 500 total points
ID: 37744207
Using WMI, it is possible to get the BIOS manufacturer information.

To Form1, add a command button (Command1) and a listview (Listview1). Set a reference in Projects / References to "Microsoft WMI Scripting V1.2 Library" ...

... and add the following code to the form:

http://vbnet.mvps.org/index.html?code/wmi/win32_bios.htm

ANNOTATION:
You'll find the Listview under:
Project\Components\ "Microsoft Windows Common Controls 5.0 (SP2)"
0
 
LVL 17

Expert Comment

by:vb_elmar
ID: 37744648
This WMI sample exports the Bios manufacturer information to a .txt file.

SHORT CODE !
5.zip
0
 

Author Closing Comment

by:BSCITECH1
ID: 37851081
Was hoping for something more "packaged" but I think I can work with this.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

726 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