Registry Path Syntax

 

When using Registrar, the general format for specifying registry keys and values is: [\\machineName\]rootKey\keyName[\\valueName]

machineName

(Optional) Name of the computer on which the registry key or value is located. If not specified, the local machine is assumed.

rootKey

Name of the rootkey in which the key or value is located. This can be either HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_CURRENT_CONFIG, HKEY_PERFORMANCE_DATA or  HKEY_DYN_DATA. Abbreviations are allowed (HKCR, HKCU etc.)

keyName

(Optional) Name of the registry key.

valueName

(Optional) Name of the value. If the \\ (double slash) is omitted then a registry key is assumed. To specify the default value, add \\ to the key name.
Examples

HKEY_LOCAL_MACHINE\Software\Fred
Specifies registry key HKEY_LOCAL_MACHINE\Fred on the local machine.

HKLM\Software\Fred\\value1
Specifies a value value1 in key HKEY_LOCAL_MACHINE\Software\Fred on the local machine.

\\Saturn\HKEY_CURRENT_USER\Software\Microsoft\Windows\\
Specifies the default value in registry key HKEY_CURRENT_USER\Software\Microsoft\Windows on machine Saturn.

This syntax is also valid when specifying a registry path using the reg: URL protocol. At a command prompt or explorer address bar, just type reg:[\\machineName\]rootKey\keyName[\\valueName]. For more information, read Registry Shortcuts.