How to set or change the UEFI Admin password using Lenovo XClarity Essentials Windows OneCLI
Set or Change UEFI Admin Password with Lenovo XClarity Essentials Windows OneCLI
Set or Change UEFI Admin Password with Lenovo XClarity Essentials Windows OneCLI
Description
This article introduces the procedure used to set or change the UEFI Admin password using Lenovo XClarity Essentials (LXCE) Windows OneCLI.
Prerequisites
Before proceeding with the steps in the article it is advised to have completed the following prerequisites:
- OneCLI must be accessible on a local machine, and that machine must have remote access to the servers.
- If OneCLI is not installed, refer to the applicable article for your OS before proceeding:
Solution
The command set out below can be used to either set the UEFI Admin password or change an existing password. The old UEFI Admin password is not required, so this procedure can be used if the password has been forgotten.
Note: Be sure to change the username, password, and IP address fields following --bmc
to the appropriate values for your server(s)
Screenshot from the Lenovo Docs link listed in the below(Additional Resources) section:
An example output is shown below. This article will use an IP address of 10.10.0.81 and the default username and password. The UEFI Admin password will be set to “Abcd1234”.
c:\onecli270>onecli config set IMM.UefiAdminPassword "Abcd1234" --bmc USERID:PASSW0RD@10.10.0.81
Lenovo XClarity Essentials OneCLI lxce_onecli01p-2.7.0
(C) Lenovo 2013-2019 All Rights Reserved
OneCLI License Agreement and OneCLI Legal Information can be found at the following location:
"c:\onecli270\Lic"
Invoking SET command ...
Connected to BMC at IP address 10.10.0.81 by IPMI
IMM.UefiAdminPassword=******
Success.