Command Prompt for Windows




Command FINDREG

Function:

Search the System Registry for a string.

Syntax:

FINDREG [hkey] "textstring" [/32 | /64]
hkeySpecifies the name of the registry to search.
textstringSpecifies the text string to find.
/32Specifies the 32-bit registry hive (default).
/64Specifies the 64-bit registry hive.

Note:

When parameter hkey is not specified then all the registries are searched, otherwise parameter hkey must be on of the following System Registry names :-

  • HKEY_USERS
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • HKEY_CLASSES_ROOT

Command FINDREG will only search the following types and all other types are ignored :-

REG_SZA null terminated string.
REG_DWORDA 32-bit number.
REG_DWORD_LITTLE_ENDIANSame as REG_DWORD.
REG_DWORD_BIG_ENDIANA 32-bit number which is automatically converted to REG_DWORD format.

The search is not case sensitive.

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.