Turn on the computer and press repeatedly to enter the BIOS. When prompted for the password, press F5 .
, enter your code, and see if it can generate a master password. hp zbook 15 g5 bios password reset