Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get the BIOS version read and saved on the backup DVD

Posted on 2013-11-14
6
Medium Priority
?
414 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 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
Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network today!

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Suggested Courses

927 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