SoFunction
Updated on 2025-04-13

Teach you step by step to back up important passwords for Windows system

Before reinstalling the system, various documents, software and desktop settings can be backed up relatively easily. But do you know how to back up your password? When backing up the system for others, how can I back up the password for the other party without knowing the other party’s system login password and port it to a new machine?

Windows 98

Principle: When Windows 98 logs in, the way to verify the password is to proofread the "User Name.PWL" file in the Windows directory. If you find that the username and password used for this login are all consistent with the "User Name.PWL" file, you will log in smoothly. On the contrary, you will not be able to log in. After understanding the principle of Windows 98 login, you can add medicine to the "user name.PWL" file!

Backup: Create a new Notepad file, enter the following content, and save it as.

@echo Bakup password.....

@echo off

md D:\pwbak

copy c:\windows\*.pwl D:\pwbak

@echo Bakup password Successfully!

pause

(Note: "c:\" is the location of the system disk, and "D:\pwbak" is the location where the password is to be saved. You can change it as needed, the same below)

After the file is created, just run it under Windows or DOS to complete the backup of all user passwords.

Recover: After reinstalling the operating system and creating a new user with the same user name as the original system (the new user name should be exactly the same as the original system, otherwise the recovery will be invalid), you can start to restore the system login password. Create a new Notepad file, enter the following content, and save it as.

@echo Restone password.....

@echo off

@echo y|copy D:\pwbak\*.pwl c:\windows

@echo Restone password Successfully!

pause

After the file is created, you can complete the recovery of all user passwords by running it under Windwos or DOS.

  Windows 2000/XP/Server 2003

Method 1:

Step 1: Enter the "at time /interactive" command at the command prompt to add a scheduled task. Use the at command to run the Registry Editor program with system permissions.

Tips

"time" specifies the time to run the command, as long as it is slightly 1 to 2 minutes away from the current time. For example: the current time is 13:43, and the command is "at 13:45 /interactive". "/interactive" allows the job to interact with the user desktop that is logged in at the time of running.

Step 2: Open the Registry Editor and find [HKEY_LOCAL_ MACHINE\SAM\SAM], and you are now available for access (see picture). Right-click the SAM subkey, select "Export" or click the menu "File → Export" to export the content of the SAM file. Close Registry Editor.

Tips

If you want to export the user password for an account in the "Registration Editor" in case of emergency, open [HKEY_LOCAL_MACHINE \SAM\SAM\Domains\Account\Users\Names], click the specific user name under the key, and click Export. Check the default values ​​of the right pane, such as "Administrator" is "0x1f4". Then click the specific value under the "Users" item, such as "000001F4", and click "Export". Important warning: You cannot delete key values ​​at will, otherwise a fatal error may occur!

Step 3: When necessary, double-click the exported REG file and import the registry file to restore the user password when exporting, or port it to a new computer.

Method 2:

Step 1: Download the tool (download address: /cfan/200502/), and save it to the "C:\WINNT\system32" folder.

Step 2: Open the "Command Line Prompt" window, enter the "psu -p -i winlogon_pid" command, and open the "Register Editor". Where winlogon_pid value is the PID number of the process. Right-click the desktop taskbar, select "Task Manager", or press Ctrl+Alt+Del key combination to open "Windows Task Manager", and click the "Process" tab to view the PID value. For example, the author's PID value of Windows XP is 824, that is, enter the "psu -p -i 824" command.

Tips

If you cannot view the PID value of the process in Windows Task Manager, click View → Select Column, and then select the "PID (Process Identifier)" option, and click OK.

Step 3: Open the "Registration Editor", press F5 to refresh, and the [HKEY_LOCAL_MACHINE\SAM\SAM] branch can be accessed. Then follow the second and third steps of "Method 1".