Command Prompt for Windows




Command ENUMREG

Function:

Enumerate all the keys in the System Registry for the specified hkey. The keys are stored in an environment variable called ENUMREG.

Syntax:

ENUMREG hkey [/32 | /64]
hkeySpecifies the path of the complete key.
/32Specifies the 32-bit registry hive (default).
/64Specifies the 64-bit registry hive.

Note:

Parameter hkey must begin with one of the following System Registry names :-

  • HKEY_USERS
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • HKEY_CLASSES_ROOT

and all the sub-keys must be separated by backslashes (ie. ' \ '), For example :-

HKEY_CURRENT_USER\Software\WinOne\WinOne

The list created contains all the enumerated keys separated by commas.

The /32 and /64 switches are ignored when the WinOne® Command Prompt is running on a 32-bit version of Windows.

Most of the registry keys in 64-bit Windows are reflected between both registry hives, that is, most of the time, using either switch will yield the same result.

Also see command GETREG, SETREG and Batch Files.