Solved

Get the BIOS version read and saved on the backup DVD

Posted on 2013-11-14
6
409 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 62

Accepted Solution

by:
☠ MASQ ☠ earned 500 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
LVL 62

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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
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…

734 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