reg
query
The command below saves the content of the registry key (HKLM\SYSTEM
) to a file named system.hive
in the C:\users\jarrett
directory.
save
HKLM\system
refers to the SYSTEM registry hive, which contains system-wide configuration settings (under HKEY_LOCAL_MACHINE\SYSTEM
).
The command below is similar to the one above, but instead with the SAM
(Security Accounts Manager) registry hive, and to the destination file of sam.hive
instead.
For the above two commands to work (working with hklm\system
and hklm\sam
), the current user must have certain privileges. Specifically, the SeBackupPrivilege
and SeRestorePrivilege.
Last updated