While commercial repair shops charge for this, the software tools themselves are open-source and free if you can borrow the inexpensive hardware programmer (like a CH341A programmer clip).
If your HP ZBook 15 G5 is completely locked—the BIOS password prompt appears before any operating system loads and you cannot bypass it—your options become more limited. HP's official position is that they do not provide master passwords to end users, and authorized service centers may require proof of purchase and charge a fee for unlocking. hp zbook 15 g5 bios password reset free
If the BIOS password was originally configured by you or your IT department, an recovery feature called may have been provisioned at the same time. This tool helps recover access by answering personal security questions. Shut down the machine entirely. While commercial repair shops charge for this, the