On many 840 G7 units, this does not work because the password lives in non-volatile memory. You may only lose the date/time.
The HP EliteBook 840 G7 is a robust, secure business machine. Unfortunately, that security works against you when you lose the password. Do not waste days on fake online generators or magical “backdoor” codes. The realistic paths are: hp elitebook 840 g7 bios password reset
When prompted for a password, enter it incorrectly three times. On many 840 G7 units, this does not