It depends if it is a BIOS password or a Windows password. A WIndows password can usually be avoided by pressingEscape.
A BIOS password is much different and more secure on a laptop than in a desktop. If that is the case, the only real cure is a motherboard replacement. Not cost effective at all, even if you can find one. If that is the case, there is no hope realistically. A desktop is east to get around, not so a laptop.
Let me know which it is. Pressing the F1 key at boot should let you know soon enough.