Removing the cmos battery on it's own won't help. You will also need to remove the main battery and the mains connection. Sometimes 2 minutes will be enough although some systems will require a few hours, if not overnight.
Check your motherboard manual or call Compaq tech support (I hope you have lots of time and patience). If there is a CMOS jumper for removing the password, one or the other will tell you where it is and how to clear the password.
Power-on passwords on laptops generally cannot be removed by disconnecting the battery, nor is there an accessible reset jumper like you find in desktops. They are made that way to deter theft. Call the manufacturer and be prepared to provide proof of ownership before they will help you unlock it.
I used to have a signature but it disappeared and I just couldn't be bothered writing another so please feel free to ingore this.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY