Use scripts to restore Windows XP user passwords

Source: Internet
Author: User
Tags net command

You can use a method that does not use third-party software to restore the administrator password.

Windows xp startup script (startup scripts) is a batch file run by a computer before the logon screen appears. Its function is similar to the Automatic Execution of batch file autoexec. BAT in Windows 9x and DOS. With this feature, you can write a batch file to reset the user password and add it to the startup script. The procedure is as follows (assuming the system directory is C: \ Windows ).

1. Use the Windows 98 boot disk to start the computer. Compile a batch file a. bat that can restore the password. The content only needs a "Net user" command: "Net user"
RWD 12345678 ". This command sets the RWD password to "12345678" (for usage of the net command, refer to Windows Help ). Save the file a. BAT to "C: \ windows \ system32 \ grouppolicy \ MACHINE \ scripts \ Startup.

2. Compile a startup/shutdown script configuration file scripts. ini. The file name is fixed and cannot be changed. The content is as follows:

[Startup]
0 rows line = A. bat
0 parameters =

3. Save the scripts. ini file to "C: \ winnt \ system32 \ grouppolicy \ MACHINE \ scripts. Scripts. ini stores the Setting data of the startup/shutdown script of the computer. The file content usually contains two data segments: [startup] and [shutdown]. [Startup] The data segment is the startup script configuration, and the [shutdown] data segment is the shutdown script configuration. Each script entry is divided into two parts: the Script Name and the script parameter. The script name is saved under the xforwarline keyword and the parameter is saved under the xparameters keyword. Here, X indicates the script sequence number starting from 0, to differentiate multiple script entries and mark the running sequence of each script entry.

4. Remove the Windows 98 boot disk, restart the computer, and wait for the startup script to run. After the script is started, the RWD password is restored to "12345678 ".

5. After Successful Logon, delete the two files created in the preceding steps.

Note: The computer uses the FAT32 file system. If the NTFS file system is used, you can mount this hard disk to another NTFS file system (such as Windows 2000 or Windows XP) in the disk mode). This method restores the administrator password. Password Recovery is equally effective for local computer users and domain users in windows.

Related Article

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.