Set-HPBIOSPowerOnPassword



Summary

Set the BIOS Power-On password

Syntax

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

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

Description

This function clears any active power-on password. The Password must comply with password complexity requirements active on the system.

Parameters

Name Argument Description
NewPassword <String> The password to set. A value is required. To clear the password, use Clear-HPBIOSPowerOnPassword
Password <String> The existing setup password (not power-on password), if any. If there is no setup password set, this parameter may be omitted. Use Get-HPBIOSSetupPasswordIsSet to determine if a setup password is currently set.
ComputerName <String> Execute the command on specified target computer. If not specified, the command is executed on the local computer.
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.

Notes

  • Requires HP BIOS.
  • Use single quotes around the password to prevent PowerShell from interpreting special characters in the string.
  • On many platform families, changing the Power-On password requires that a BIOS password is active.

Examples


PS C:\> Set-HPBIOSPowerOnPassword -NewPassword 'newpw' -Password 'setuppw'

See also