If used with the GetSettings switch, this acts as the location where a list of current BIOS settings will be saved.
CsvPath – Use this parameter to specify the location of a CSV file.Settings can be specified either in the body of the script or from a CSV file. SetSettings – Use this parameter to instruct the script to set specific BIOS settings.The settings will be displayed to the screen by default. GetSettings – Use this parameter to instruct the script to generate a list of all current BIOS settings.This script takes the basic commands and adds logic to allow for a more automated settings management process. 6 – Access Denied (Usually caused by an incorrect BIOS password)įor more detailed information on the HP WMI interface, refer to the official documentation: Manage-HPBiosSettings.ps1.4 – Failed (Usually caused by a typo in the setting value).This method allows for changing HP BIOS settings.įor reference, these are the possible return codes for the SetBIOSSetting method: The HP_BIOSSettingInterface WMI class contains a method called SetBIOSSetting. $Interface.SetBIOSSetting("Deep Sleep","On","" + "Password")
#HP SCRIPTING TOOLS FOR WINDOWS POWERSHELL PASSWORD#
#Set a specific value for a specific setting when a BIOS password is set $Interface.SetBIOSSetting("Deep Sleep","On") #Set a specific value for a specific setting when a BIOS password is not set
$Interface = Get-WmiObject -Namespace root\HP\InstrumentedBIOS -Class HP_BIOSSettingInterface #Connect to the HP_BIOSSettingInterface WMI class