Solved

Get the BIOS version read and saved on the backup DVD

Posted on 2013-11-14
6
403 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
  • 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 46

Author Comment

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

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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 46

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 46

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now