SoFunction
Updated on 2025-04-06

Delete SAM files and clear Administrator account password

Delete SAM files and clear Administrator account password
 
Applicable system: Windows 2000
There is a SAM file (that is, the account password database file) under Winnt\System32\Config where Windows 2000 is located, which saves all user names and passwords in Windows 2000. When you log in, the system will type the username and password. Proofread with the encrypted data in the SAM file. If both match exactly, they will enter the system smoothly, otherwise they will not be able to log in. Therefore, we can use the method of deleting the SAM file to restore the administrator password.
Use Windows PE, Bart PE, NTFSDOS, etc. to start, delete the SAM file and restart. At this time, the administrator Administrator account has no password. At this time, you can use the Administrator account to log in to the system without entering any password. After entering the system, you can reset your administrator account password.
Tips:
This method cannot be used on Windows XP/2003. If you delete the SAM file, it will cause the system to crash.
The security management of user accounts in Windows NT/2000/XP uses the security account manager (SAM) mechanism. The security account manager manages the account through security identifiers. The security identifier is created at the same time when the account is created. Once the account is deleted, the security identifier is also deleted at the same time. Security IDs are unique, and even with the same username, the security IDs obtained at each creation are completely different. Therefore, once an account is deleted, its security identifier no longer exists. Even if the account is rebuilt with the same username, it will be given different security identifiers and will not retain the original permissions.
The specific manifestation of the security account manager is the %SystemRoot%\system32\config\sam file. The SAM file is the user account database of Windows NT/2000/XP. All users' login names and passwords and other related information departments will be saved in this file.
In addition, in Windows XP, copy the \WINDOWS\repair\sam file to the \WINDOWS\system32\config\ directory (if you are worried, you can back up the original SAM file first), and the password of the Administrator account will be empty.
If possible, other methods are recommended.
 
Advantages: Easy to use
Disadvantages: Destroy security identifiers and cannot be used in Windows XP or Windows 2003. If encryption is used with EFS, encryption will be damaged and data will be lost.
 
Back to homepage