Set-HPBIOSSetupPassword



Summary

Sets the BIOS Setup password on the current device unless specified for another platform

Syntax

Set-HPBIOSSetupPassword [-NewPassword] <String> [[-Password] <String>] [[-ComputerName] <String>] [<CommonParameters>]

Set-HPBIOSSetupPassword [-NewPassword] <String> [[-Password] <String>] [-CimSession] <CimSession> [<CommonParameters>]

Description

This command sets the BIOS Setup password to a new password. The password must comply with the current active security policy.

Parameters

Name Argument Description
NewPassword <String> Specifies the new password. To clear the password, use the Clear-HPBIOSSetupPassword command instead.
Password <String> Specifies the existing setup password, if any. If there is a password set, this parameter is required. If there is no password set, providing a value to this parameter has no effect on the outcome. Use the Get-HPBIOSSetupPasswordIsSet command to determine if a password is currently set.
ComputerName <String> Specifies a target computer for this command to create its own one-time-use CIMSession object using with. If not specified, this command will use the current device as the target computer for this command. The alias 'Target' can also be used for this parameter.
CimSession <CimSession> Specifies a pre-established CIMSession object (as created by the New-CIMSession command) or a ComputerName in string format for this command to create a one-time-use CIMSession object with

Notes

  • Requires HP BIOS.
  • Use single quotes around the password to prevent PowerShell from interpreting special characters in the string.
  • Multiple attempts to change the password with an incorrect existing password may trigger BIOS lockout mode, which can be cleared by rebooting the system.

Examples


PS C:\> Set-HPBIOSSetupPassword -NewPassword 'newpassword' -Password 'oldpassword'

See also