BIOS being hardware, setting it up with a password locks the operating system. There are three ways to reset the BIOS password:
you need to unplug the PC and remove the CMOS battery in the cabinet for 15–30 minutes. Then, you can put it back.
You can use third-party software such as CmosPwd and Kiosk.
You can run the below commands from the MS-DOS prompt with the help of the debug tool. For this method to work, you need to have access to the OS installed.
Debug
o 70 2E
o 71 FF
quit
This will reset all BIOS configurations, and you will need to re-enter the settings for it.