Workflow Tools Control Yard

Home / Windows

.reg file value decoder

Paste lines of a .reg file to read each value as text and numbers: dword: numbers, hex(2) text with its %variables%, hex(7) lists, hex(b) 64-bit numbers and the rest. Or write a value, and get the .reg file and the reg add command for it.

Read a .reg file

Write a value

The .reg file

The same with reg add, at the command prompt

To apply the file: reg import contoso.reg, or import it in Registry Editor (regedit.exe). reg import and reg add take /reg:64 or /reg:32 to pick the 64-bit or the 32-bit view of the registry.

The data in a .reg file

In the fileTypeNumberHolds
"text"REG_SZ1Text, in quotation marks.
dword:0000001fREG_DWORD4A 32-bit number, as eight hex digits.
hex:01,02REG_BINARY3Bytes.
hex(0):REG_NONE0No defined type: bytes.
hex(1):REG_SZ1Text again, written as bytes.
hex(2):REG_EXPAND_SZ2Text whose %variables% are expanded when a program reads it.
hex(4):REG_DWORD4A 32-bit number as four bytes, low byte first.
hex(5):REG_DWORD_BIG_ENDIAN5A 32-bit number as four bytes, high byte first.
hex(6):REG_LINK6The target path of a registry symbolic link: Unicode text.
hex(7):REG_MULTI_SZ7A list of strings, each ended by a null, the list by one more.
hex(8):REG_RESOURCE_LIST8A resource list: bytes.
hex(9):REG_FULL_RESOURCE_DESCRIPTOR9A full resource descriptor: bytes.
hex(a):REG_RESOURCE_REQUIREMENTS_LIST10A resource requirements list: bytes.
hex(b):REG_QWORD11A 64-bit number as eight bytes, low byte first.
---After the =, deletes the value.

The number is the type's value in winnt.h; hex(N): takes it in hex, so hex(b): is type 11.

How regedit reads the file

Sources

More Windows tools