Summary
Clears the BIOS Setup password on the current device unless specified for another platform
Syntax
Clear-HPBIOSSetupPassword [-Password] <String> [[-ComputerName] <Object>] [<CommonParameters>]
Clear-HPBIOSSetupPassword [-Password] <String> [-CimSession] <CimSession> [<CommonParameters>]
Description
This command clears the BIOS setup password on the current device unless specified for another platform. To set the password, use the Set-HPBIOSSetupPassword command.
Parameters
Name | Argument | Description |
---|---|---|
Password | <String> | Specifies the existing setup password. Use the Get-HPBIOSSetupPasswordIsSet command to determine if a password is currently set. |
ComputerName | <Object> | 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. BIOS lockout mode can be cleared by rebooting the system.
Examples
PS C:\> Clear-HPBIOSSetupPassword -Password 'currentpassword'