For the HP ZBook 15 G5 in 2021, the "CMOS battery removal" trick is obsolete. The resolution path is:
Note: On some newer ZBook revisions, this method clears the "BIOS Setup Password" but leaves the "Power-On Password" intact, or vice versa. You may need to short the pins while the unit is powered on (risky) if the power-off method fails. hp zbook 15 g5 bios password reset 2021
HP ZBook 15 G5 BIOS Password Reset in 2021: Is It Possible? For the HP ZBook 15 G5 in 2021,
Open the generated config.txt file. Look for the security strings relating to the Setup Password. hp zbook 15 g5 bios password reset 2021