Set one or more BIOS settings from a file


Set-HPBIOSSettingValuesFromFile [-File] <FileInfo> [[-Format] <String>] [[-Password] <String>] [[-NoSummary]] [[-ComputerName] <String>] [[-ErrorHandling] <Object>] [<CommonParameters>]

Set-HPBIOSSettingValuesFromFile [-File] <FileInfo> [[-Format] <String>] [[-Password] <String>] [[-NoSummary]] [[-ErrorHandling] <Object>] [-CimSession] <CimSession> [<CommonParameters>]


This function sets multiple BIOS settings from a file. The file format may be specified via the -format parameter, however the function will try to infer the format from the file extension.


Name Argument Description
File <FileInfo> The settings file (relative or absolute path) to process
- Note that BIOS passwords are not encrypted in this file, so it is essential to protect its content until applied to the target system.
Format <String> The file format (XML, JSON, CSV, or BCU).
Password <String> The current BIOS setup password, if any.
NoSummary Suppress the one line summary at the end of the import
ComputerName <String> Execute the command on specified target computer. If not specified, the command is executed on the local computer.
ErrorHandling <Object> This value is used by wrapping scripts to prevent this function from raising exceptions or warnings.
0 - operate normally
1 - raise exceptions as warnings
2 - no warnings or exceptions, fail silently
CimSession <CimSession> A pre-established CIM Session (as created by New-CIMSession cmdlet). Use this to pass a preconfigured session object to optimize remote connections or specify the connection protocol (Wsman or DCOM). If not specified, the function will create its own one-time use CIM Session object, and default to DCOM protocol.


  • Requires HP BIOS.
  • Use single quotes around the password to prevent PowerShell from interpreting special characters in the string.


PS C:\> Set-HPBIOSSettingValuesFromFile -File .\file.bcu -NoSummary