Backup and recovery of CMOS settings

xiaoxiao2021-03-06  56

There are too many machine rooms, and there is a password there. If a one is added, the workload is too big, and it is easy to go wrong, so,

Set the CMOS of a machine

Write two small programs (QB):

1: Backup CMOS at Back.dat:

Open "back.dat" for Output AS # 1

For i = 0 to 127

OUT & H70, I

A = INP (& H71)

Print # 1, A

Next i

Close # 1

End

2. Restore CMOS settings from Back.dat

Oper "back.dat" for Input as # 1

For i = 0 to 127

OUT & H70, I

INPUT # 1, A

OUT & H71, A

Next i

Close # 1

End

Put the two write programs under the DOS system of the master, and perform a backup program on the master, plus a line of the autoeexec.bat file, so that the CMOS recovery program is automatically run when the DOS system is started. .

Finally, use the protection card to send this DOS system to each computer in the computer room, start all the computers of the machine room, enter the DOS system, so that the CMOS settings of all machine rooms are the same as the mother disk ...

However, the result is not as easy. It is found that only the setting of the master is correct, and the CMOS settings of other computers have changed (there is no password, now there is, but it is not set to the master) ,,,,,,I do not know why it has to be like this...

转载请注明原文地址:https://www.9cbs.com/read-118180.html

New Post(0)