Windows Registry Hive for Password Storage

Answer Correct answer: A — The Security Account Manager (SAM) database containing hashed passwords is stored under the HKEY_LOCAL_MACHINE hive.

Which part of the Windows Registry contains the user's password file?

  1. HKEY_LOCAL_MACHINE Correct Answer
  2. HKEY_CURRENT_CONFIGURATION
  3. HKEY_USER
  4. HKEY_CURRENT_USER

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The exam tests knowledge of registry hives, specifically distinguishing between user-specific settings and system-wide security databases like SAM.

This question examines the structure of the Windows Registry and identifies which hive stores user credentials. The correct location is HKEY_LOCAL_MACHINE, where the Security Account Manager (SAM) database resides.

Candidates often select HKEY_CURRENT_USER, mistakenly believing that because passwords relate to users, they must be stored in the current user's specific hive.

Community Discussion (3 comments)

044f354 👍 1 Selected: A
https://www.lifewire.com/hkey-local-machine-2625902 HKEY_LOCAL_MACHINE Subkeys The following registry keys are located under the HKEY_LOCAL_MACHINE hive: HKEY_LOCAL_MACHINE\BCD00000000 HKEY_LOCAL_MACHINE\COMPONENTS HKEY_LOCAL_MACHINE\DRIVERS HKEY_LOCAL_MACHINE\HARDWARE
Elb 👍 1 Selected: A
The Security Account Manager (SAM) is a critical Windows database housing user account credentials, including usernames and hashed passwords. Managed by the Local Security Authority (LSA), it validates user logins by cross-referencing passwords within the SAM database. Stored in the c:\windows\system32\config\SAM directory and HKEY_LOCAL_MACHINE\
Elb 👍 1
The LSA secrets key is located under HKEY_LOCAL_MACHINE\Security\Policy\Secrets. It may contain VPN/RAS passwords, Autologon passwords, and other system keys/passwords.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The Security Account Manager (SAM) database contains the hashed passwords for local user accounts. This database is physically stored in the file C:\Windows\System32\config\SAM but is loaded into the registry under the HKEY_LOCAL_MACHINE hive as HKLM\SAM. Therefore, HKEY_LOCAL_MACHINE is the correct answer.

Why the Other Options Are Wrong

HKEY_CURRENT_USER is a pointer to the specific user's branch under HKEY_USERS; it does not contain the master password database. HKEY_USERS contains profiles for all users but is distinct from the SAM data store. HKEY_CURRENT_CONFIGURATION maps to hardware configuration data and has no relation to user credentials.

Community Comment Notes

Community comments correctly identify that the SAM database is located under HKEY_LOCAL_MACHINE. One commenter noted that "The Security Account Manager (SAM) is a critical Windows database... Stored in the c:\windows\system32\config\SAM directory and HKEY_LOCAL_MACHINE". Another added that LSA secrets are also under HKLM, reinforcing that sensitive system data resides there.

Exam Strategy

When asked about system security data or SAM, always look for HKEY_LOCAL_MACHINE. User-specific preferences go to HKEY_CURRENT_USER, but authentication credentials are system-level resources managed by the Local Security Authority.

Frequently Asked Questions

Why isn't the password stored in HKEY_CURRENT_USER?

HKEY_CURRENT_USER only holds settings for the logged-in user. Password hashes are stored centrally in the SAM database under HKLM for system-wide authentication.

What is the physical file for the SAM database?

The SAM data is physically stored in the file C:\Windows\System32\config\SAM on the local drive.

More 312-49v10 FAQ →

Related Analysis

← Back to 312-49v10 Study Guide