Only works if you still have Windows 7/8/10 32-bit or 64-bit installed.
Method 1: The "Flash System ROM" (F10 Setup) — Safest Method hp compaq dc5800 small form factor bios update
Malware or background processes can interfere. Only works if you still have Windows 7/8/10