Restore the administrator password or create an Administrator Account

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.