BiosConfigUtility from HP

The Tool BiosConfigUtitlity from HP can help you to read out the Bios Configuration of an HP PC, and if you like to save the changes you made.
you’ll find it in the SSM Pack from HP
Download SSM
If you like this remote of a network you might need the PSTools from Sysinternals (Microsoft)
PSTools

How to use BiosConfigUtility.exe: Quick Guide

just open a command(cmd) window and type into it

BiosConfigUtility.exe /getconfig:C:TempbiosBiosConfig.txt

to save your updated Bios Config you just use following line

BiosConfigUtility.exe /setconfig:C:TempbiosBiosConfig.txt

and your done.
IMPORTANT: if your Bios is Password protected this will not work. Check below for a solution.
now sometimes that’s not all what you want to do. Lets say you want to read the configuration from a PC remotely.

For that you need the little tool psexec.exe. The BiosConfigUtility.exe has to be stored on the remote PC in this example it is in the Folder C:Tempbios

now open your cmd window and type into it

psexec.exe \%PCNAME% -e -s "C:TempbiosBiosConfigUtility.exe" /getconfig:C:TempbiosBiosconfig.txt

If you like to use a little batch file you can use something like this:

@echo off
echo.
set instpath = %~s0..
cls

:input
set /p MyPC="Please enter PC Name: "
if not defined MyPC goto input

cls
mkdir \%MyPCc$Tempbios

copy \yourPCfolderBiosConfigUtility.EXE \%MyPC%C$Tempbios
copy \yourPCfolderpsexec.EXE \%MyPC%C$Tempbios

echo files copied

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe" /getconfig:C:TempbiosBiosConfig.txt

if exist "\%MyPC%C$Tempbios" (start explorer.exe /e,"\%MyPC%C$Tempbios")

echo edit the config file
pause

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe /setconfig:C:TempbiosBiosConfig.txt

del \%MyPC%C$Tempbios
rd \%MyPC%C$Tempbios

This is a really plain version. You can add security steps and other stuff, that’s up to you.

What does this Script do:

:input
set /p MyPC="Please enter PC Name: "
if not defined MyPC goto input

This part asks for the Remote PC you would like to edit. If you do not type in a PC it will just ask you again.

cls
mkdir \%MyPCc$Tempbios

copy \yourPCfolderBiosConfigUtility.EXE \%MyPC%C$Tempbios
copy \yourPCfolderpsexec.EXE \%MyPC%C$Tempbios

echo files copied

If you typed in your PC name and pressed enter cls will clear the screen. The next line creates a Folder on the Remote machine where the BiosConfigUtility will be stored.
This is done in the next line. After that you get a message that the file was copied.
Notice: I do not ask if it really was successful. You might have to check this manually. you can try to read out the errorlevel.

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe" /getconfig:C:TempbiosBiosConfig.txt

if exist "\%MyPC%C$Tempbios" (start explorer.exe /e,"\%MyPC%C$Tempbios")

echo edit the config file
pause

Now BiosConfigUtility will read out the Bios Configuration and saves it in a .txt file. It will look up the Folder and opens it if it exists so that you can open the Configuration file and edit it.
The Script will wait until you press a key in the cmd window.

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe /setconfig:C:TempbiosBiosConfig.txt

del \%MyPC%C$Tempbios
rd \%MyPC%C$Tempbios

Now BiosConfigUtility will save the Configuration and remove the files and the Folder.

 

There will be a problem if your bios is Password protected. In other words it will not save the configuration but return an error. You have to modify your /setconfig part.
The /setconfig part would look like this

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe /cspwd:"MyBiosPW" /setconfig:C:TempbiosBiosConfig.txt

still you can get problems if you have special character in the password.
The HP Tool uses the English Keyboard Layout as shown if you start the tool with /?
For example you use the special character # you have to escape the hash sign.

Lets pretend you ask your user at a point to type in the password and the password looks like this 0ax#xx#
use following code to escape the # key.

set /p MyBiosPW="enter Bios PW: "
set MyBiosPW=%MyBiosPW%:#=%

psexec.exe \%MyPC% "C:TempbiosBiosConfigUtility.exe /cspwd:%MyBiosPW% /setconfig:C:TempbiosBiosConfig.txt

That should do it.

if you need to reset your Password you can try to clear it.
try the line

BiosConfigUtility.exe /newSetupPassword:""

but this doesn’t work all the time. There is no way known to me that always clears the password.
to change your password just use the following line

BiosConfigUtility.exe /CurrentSetupPassword:"oldPassword" /NewSetupPassword:"newPassword"

Please let me know in the comments if it was helpful or if you have any questions.

2 thoughts on “BiosConfigUtility from HP”

Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

5,151 Spam Comments Blocked so far by Spam Free Wordpress