Source: http://www.enet.com.cn
Losing the administrator password is a headache, but it may happen at any time. in an emergency, there are already many mature technologies such as the classic logon screen protection procedure and O & O software. in fact, using the startup script is also a good choice.
(1) If the faulty computer uses the FAT/FAT32 file system, you can directly use the Win98 boot disk for boot. if the NTFS file system is used, remove the hard disk from the faulty computer and mount it to another Win2000 computer in disk mode. the following is a case later. Assume that the system partition of the faulty computer (usually C becomes the partition E on the new computer :.
(2) Compile a batch file admin. bat that can restore the administrator password. The content only needs a "net user" command:
Net user administrator 12345678
Assume that the current administrator is administrator and the password is "12345678 ".
Save the admin. bat file to "E: winntsystem32GroupPolicyMachineScriptsStartup", that is, the original "C: winntsystem32GroupPolicyMachineScriptsStartup" of the faulty computer.
(3) Compile a startup/shutdown script configuration file scripts. ini. The file name is fixed,
It cannot be changed. The content is as follows:
[Startup]
0 Required line = admin. bat
0 Parameters =
Save the file scripts. ini to "E: winntsystem32GroupPolicyMachineScripts", that is, the original "C: winntsystem32GroupPolicyMachineScripts" of the faulty computer.
(4) recover the hard disk to the master disk, connect it to the original computer, and restart it. Wait until the startup script is run. After the startup script is run, the administrator's password is restored to "12345678 ".
(5) If you want to create a new Administrator Account, modify the content of the admin. bat file to: net user admin 12345678/add
Net localgroup administrators admin/add, an administrator account named "admin" with a password of "12345678" is created. this method not only restores the password of the local administrator on the independent server, but also restores the password of the domain administrator in the Win2000 domain.