How to back up important windows passwords

Source: Internet
Author: User

Before reinstalling the system, you can easily back up various documents, software, and desktop settings. But do you know how to back up the password? When backing up a system for another user, how can I back up the password for the other user without knowing the logon password of the other user's system and port it to a new machine?

Windows 98

Principle: when a user logs on to Windows 98, the password is verified by checking the "user name" in the Windows directory. PWL file. If you find that the user name and password used for this logon are all the same as the "user name. the PWL file is consistent and will log on smoothly. On the contrary, you cannot log on. After learning how Windows 98 is logged on, you can click "medicine" under the "user name. pwl" file!

Backup: Create a New notepad file, enter the following content, and save it as backup. bat.

@ 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, "d: \ pwbak" is the location of the password to be saved, which can be changed as needed, the same below)

After the file is created, you only need to run it in Windows or DOS to back up all user passwords.

Recovery: after the operating system is reinstalled and a new user with the same username as the original system is created (the new username should be exactly the same as that in the original system; otherwise, the recovery is invalid ), you can start to recover the system logon password. Create a new notepad file, enter the following content, and save it as restone. bat.

@ Echo restone password .....

@ Echo off

@ Echo y | Copy D: \ pwbak \ *. pwl C: \ WINDOWS

@ Echo restone password successfully!

Pause

After the file is created, you only need to run it in windwos or DOS to restore all user passwords.

Windows 2000/XP/Server 2003

Method 1:

Step 1: Enter the "at time/interactive regedit.exe" command at the command prompt to add a scheduled task. The at command is used to run "Registry Editor" with the system permission"Program.

Tips

"Time" specifies the time for running the command, as long as it is a little earlier than the current time 1 ~ 2 minutes. For example, the current time is and the command is "at/interactive regedit.exe ". "/Interactive" allows a job to interact with the user's desktop at the time of running.

Step 2: Open the Registry Editor and find [hkey_local _ machine \ SAM]. Now you can access it (see figure ). Right-click the Sam sub-key and select "Export" or click "File> export" to export the contents of the SAM file. Close Registry Editor ".

Tips

To export the user password of an account in the registry editor for emergency purposes, open [HKEY_LOCAL_MACHINE \ SAM \ Domains \ ACCOUNT \ Users \ names]. click the user name under the item and click Export ". View the default value of the right pane. For example, "Administrator" is "0x1f4 ". Click a specific value under "users", such as "000001f4", and click "Export ". Important warning: You cannot delete any key value. Otherwise, a fatal error may occur!

Step 3: if necessary, double-click the exported reg file and import the Registry file to restore the exported user password or port it to a new computer.

Method 2:

Step 1: Download The psu.exe tool (: http://www.newhua.com/cfan/200502/psu.rar) and save it to the C: \ winnt \ system32 folder.

Step 2: Open the "command line prompt" window, enter the "PSU-P regedit.exe-I winlogon_pid" command, and open the "Registry Editor ". The value of winlogon_pidis the pid of the winlogon.exe process. The PID value of the token. For example, if the PID value of Windows XP winlogon.exe is 824, enter the "PSU-P regedit.exe-I 824" command.

Tips

If you cannot view the PID value of a process in "Windows Task Manager", click "View> Select column", select the "PID (process identifier)" option, and click "OK ".

Step 3: Open Registry Editor and press F5 to refresh. The [HKEY_LOCAL_MACHINE \ SAM] branch can be accessed. Follow the steps 2 and 3 in method 1.

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.