Today, I forgot my password for Windows XP on the useless Virtual Machine for a long time. I searched the internet and finally found the solution. The method is as follows:
1) log on to the fault recovery console on the installation disc of Windows XP (you can also use the one-click ghost optical disk version );
2) Copy c: \ windows \ repair \ SAM c: \ windows \ system32 \ config \ SAM
3) restart.
Note that the Sam files in the repair directory were generated when Windows XP was installed. After the copy operation is executed, the users and user groups created in the system will be lost.
By the way:
If you forget the logon password of Windows XP, You cannot delete the Sam file. After deleting the sample file, the system crashes and the lsass.exe system error occurs when the system restarts. ":" The security account manager fails to initialize because the following error occurs: The device connected to the system does not function. The error status is 0xc000001. Click the error to enter the safe mode ......". After you click "OK", the system restarts immediately. This is also true for logging on to Windows XP in safe mode.