Use scripts to restore user passwords for Windows XP systems

xiaoxiao2021-03-06  68

Windows XP Startup Scripts is a batch file that the computer runs before the login screen, which is similar to the automatic execution 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 so that the purpose is achieved. The following is a specific step (assuming the system directory is C: / Windows). 1. Use the Windows98 boot disk to launch your computer. Write a batch file A.BAT that can restore your password, you only need a "net user" command: "NET USER RWD 12345678". This command means setting the user RWD password to "12345678" (see Windows Help) about the use of NET commands). The file A.BAT is then saved to "C: / Windows / System32 / GroupPolicy / Machine / Scripts / Startup". 2. Write a start / shutdown script configuration file Scripts.ini, this file name is fixed, and cannot be changed. The content is as follows: [startup] 0cmdline = a.bat 0parameters = 3. Save the file Scripts.ini to "C: / WinNT / System32 / GroupPolicy / Machine / Scripts". Scripts.ini saves the setting data of the computer start / shutdown script, and the file content usually contains two data segments: [Startup] and [Shutdown]. The [startup] data segment is the startup script configuration, and it is a shutdown script configuration under the [shutdown] data segment. Each script entry is divided into feet name and script parameters two parts stores, the script name is saved under the XCMDline keyword, the parameters are saved under the XParameters keyword, the x represents the script serial number starting from 0 to distinguish multiple scripts and flags The order of operation of each script entry. 4. Remove the Windows 98 boot disk, restart your computer, wait for the startup script to run. After the startup script runs, the password of the user RWD is restored to "12345678". 5. After the login is successful, delete the two files established by the above steps. Description: The computer is used by the FAT32 file system

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

New Post(0)