Welcome to Tech Tips 4 U                             

PLEASE CLICK HERE TO VISIT OUR FRIENDS AT:


 

 

How do I clear CMOS / NVRAM using the debug command?


Software KB

kb# SW00025
     ***WARNING - RUNNING ANY DEBUG SCRIPT ON YOUR SYSTEM DOES HAVE THE POTENTIAL TO  DELETE ALL FILES ON YOUR SYSTEM AND / OR OTHER PROBLEMS. ***

This script has been tested both in dos and in windows.


     Here is the script:

Boot to a Windows boot disk and use the following script.
If debug can't be found on the Windows boot disk you may have to extract it. The computer will generate the text in red and you will type the text in white, where it says (ENTER) just hit the Enter key don't type the word. After the computer restarts you will receive a CMOS checksum error and will have to reset your time , date and other settings in your BIOS . 

debug (ENTER)

- A <ENTER>
MOV AX,0 <ENTER> 
MOV AX,CX <ENTER> 
OUT 70,AL <ENTER> 
MOV AX,0 <ENTER> 
OUT 71,AL <ENTER> 
INC CX <ENTER> 
CMP CX,100 <ENTER> 
JB 103 <ENTER> 
INT 20 <ENTER> 
<ENTER> Note: Nothing is typed on this line 
G <ENTER> By pressing G this will execute the above script, ensure you have read and agree to the above warning.
Q <ENTER>

 


     If you think you may have a virus that infects the BIOS you may also want to clear your hard drive.  Otherwise it could reinfect your bios  after you reboot. Click here for a script that will clear cmos / nvram and your primary hard drive.



 

 

This page was last modified on 03/02/08

 

 

 

 

 

Please tell us what you think.

Did this article help resolve your issue?

Yes, helped very much.

No, didn't help at all.

N/A, didn't apply to my issue.

Comments:

 

Recommend This Site

Your Name:

Your Email:

Friends Name:

Friends Email:

Personal note for your friend:

Send me a copy of what is sent to my friend. (recommended)