Changing BIOS Options on HP Computers Remotely

There may be a better way to do this, but from what I found there’s limited options to change HP BIOS options remotely. For their servers there are some nice PowerShell cmdlets, but for desktops the options are limited. HP does have a BIOS Configuration Utility (which can be found here:, but it doesn’t include remote options; you’d typically need to run it interactively on the computer you want to make changes to, which is a bit prohibitive. In order to get around this I wrote a little script that will copy the executable from a shared directory, and then invoke a command, which allows you to make changes on as many computers as you want at once.

The script I wrote was tooled specifically to change BIOS options, but it can be modified to be able to change any BIOS setting available.

Writing this wasn’t too difficult, but there was one piece that gave me a spot of trouble, which was the invoke command. Because I wanted to include a variable, run it from the command line, and had to include some quotations to make the command be interpreted correctly, I had to play around with that a fair bit. There are a couple of ways to run executables from PowerShell, but I went with using cmd /c from within an Invoke-Command, partially because it was one of the least complex methods, and because I was able to get it to work. To make use of the BootOption parameter I had to include a param() declaration in the ScriptBlock along with the ArgumentList parameter. And because commas and slashes are treated differently by the PowerShell interpreter, I had to escape these using the ` character (Be aware this also escapes the newline character, so it can be used to split up a command into multiple lines to increase readability).

Without further ado, here’s the script:

To run this, you’ll first need to have the the BIOS  Configuration Utility in a shared location, then update the script so it knows where it is. With that you can then run it with:

You could also include any number of computers by separating them with commas:

Or use a query from AD. For example, this will set the first boot option to the network controller on all computers in the Desktops OU:


Leave a Reply

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