Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get the BIOS version read and saved on the backup DVD

Posted on 2013-11-14
6
Medium Priority
?
413 Views
Last Modified: 2014-01-07
Hi guys,

I have an interesting question. I need a small utility which I could start before backup and save to DVD with the backup. This utility must read the BIOS info (let's say first three lines of Main page where the model version is written) and save this info into some file.
Then my backup will start.
After that I will start the PC from this backup CD and initiate restore. The tool must compare the BIOS of the machine and the information saved from backup source machine and warn me that I am going to restore to wrong machine.

Does anyone know such tool? I know that Panasonic does this check. But I am not able to find out what sort of tool or script is doing this.
0
Comment
Question by:noxcho
[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
  • 4
  • 2
6 Comments
 
LVL 63

Accepted Solution

by:
☠ MASQ ☠ earned 2000 total points
ID: 39649710
Depends how much detail you want to grab but here's a VBS script from the MS Script Center which extracts all the BIOS data through winmgnt.

This script then displays the results on screen but you could as easily choose the options you want to record and then save them to a file for comparison.
strComputer = "." 
Set objWMIService = GetObject("winmgmts:" _ 
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 
 
Set colBIOS = objWMIService.ExecQuery _ 
    ("Select * from Win32_BIOS") 
 
For each objBIOS in colBIOS 
    Wscript.Echo "Build Number: " & objBIOS.BuildNumber 
    Wscript.Echo "Current Language: " & objBIOS.CurrentLanguage 
    Wscript.Echo "Installable Languages: " & objBIOS.InstallableLanguages 
    Wscript.Echo "Manufacturer: " & objBIOS.Manufacturer 
    Wscript.Echo "Name: " & objBIOS.Name 
    Wscript.Echo "Primary BIOS: " & objBIOS.PrimaryBIOS 
    Wscript.Echo "Release Date: " & objBIOS.ReleaseDate 
    Wscript.Echo "Serial Number: " & objBIOS.SerialNumber 
    Wscript.Echo "SMBIOS Version: " & objBIOS.SMBIOSBIOSVersion 
    Wscript.Echo "SMBIOS Major Version: " & objBIOS.SMBIOSMajorVersion 
    Wscript.Echo "SMBIOS Minor Version: " & objBIOS.SMBIOSMinorVersion 
    Wscript.Echo "SMBIOS Present: " & objBIOS.SMBIOSPresent 
    Wscript.Echo "Status: " & objBIOS.Status 
    Wscript.Echo "Version: " & objBIOS.Version 
    For i = 0 to Ubound(objBIOS.BiosCharacteristics) 
        Wscript.Echo "BIOS Characteristics: " & _ 
            objBIOS.BiosCharacteristics(i) 
    Next 
Next 

Open in new window

0
 
LVL 47

Author Comment

by:noxcho
ID: 39650443
Thanks masqueraid, I will give it a try.
0
 
LVL 47

Author Comment

by:noxcho
ID: 39725136
Hi MASQUERAID, I have managed to receive the BIOS and commode info now the last thing I am trying to resolve is a battery status.
Normally it should have been reported via "wmic path win32_batter get batterystatus". In another question I got a hint that battery.inf driver must be loaded as well.
Now a question, is there any additional component that should be added to winpe.wim (except driver) which must make it work?
In my case even after loading the driver checking battery returns me No Instance Found error.
0
Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

 
LVL 63

Expert Comment

by:☠ MASQ ☠
ID: 39725250
Can you show the script you are using to get the battery status?
Are you just polling for the presence of a battery or are you checking for a value related to charge status?
0
 
LVL 47

Author Comment

by:noxcho
ID: 39725374
I am using a simple wmi command in CMD under WinPE later going to be run via .bat file.
My command is wmic path win32_battery get batterystatus.
In Windows it returns code 1 or 2 depending on charging or discharging status.
But in WinPE I get "No Instance(s) Available" for this command. I am teying to understand if it is possible at all. Although I aphave managed to do it once after many attempts with different components added to WinPE. :)
0
 
LVL 47

Author Closing Comment

by:noxcho
ID: 39761481
It was missing battery driver which was not loading automatically after WinPE load which prevented me using your input.
Simply loaddrv command at startnet.cmd fixed it.
Thank you for pointing me to right direction.
0

Featured Post

[Video] Create a Disruption-Free Workspace

Open offices have their challenges. And Sometimes, it's even hard to work at work. It's time to reclaim your office and create a disruption-free workspace. With the MB 660, you can:

-Increase Concentration
-Improve well-being
-Boost Productivity

Question has a verified solution.

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

Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

722 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