For Windows Password, As far as I know , there are two main methods to solve the windows password problem as follows:
1st Method:
Start system and when you see Windows Welcome screen / Login screen, press ctrl+alt+del keys twice and it'll show Classic Login box. Now type \Administrator\ (without quotes) in Username and leave Password field blank. Now press Enter and you should be able to log in Windows.
Now you can reset your account password from \Control Panel - User Accounts\.
Same thing can be done using Safe Mode. In Safe Mode Windows will show this in-built Administrator account in Login screen.
2th Method:
Windows password Recovery software:
for example:Reset Windows user Password in 3 Minutes
http://passwordreset.org/windows/reset-windows-user-password-in-3-minutes.html
For Bios Password, also two methods.
1st method . Open you computer box and Discharge to the Board manually
2st method . For example this tutorial: Bypass BIOS Password or Crack CMOS Password? http://passwordreset.org/bios/bypass-bios-password-or-crack-cmos-password.html
Hope it help to you.