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 9× 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 ". 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.