Show Menu
Cheatography

Windows Registry Cheat Sheet (DRAFT) by

Cheat Sheet for adjusting or writing .reg files for updating the Windows Registry

This is a draft cheat sheet. It is a work in progress and is not finished yet.

First line

Windows Registry Editor Version 5.00

Key format

[<Hive name>\<Key name>\<Subkey name>]
@=<Value type>:<Value data>
"Value name"=<Value type>:<Value data>

Value types

@=
(Default) value
"Value name"="S­tring value with escape charac­ter­s"
String value

Deleting Keys or Values

[-<Hive name>­\<Key name>­\<Subkey name>]
Delete Key
@-
Delete (Default) value
"Value name"=-
Delete value
The '-' character in the correct place for the Key or Value will delete it
 

Root Keys

HKEY_L­OCA­L_M­ACHINE
HKLM
HKEY_C­URR­ENT­_CONFIG
HKCC
Win 98 & NT only
HKEY_C­LAS­SES­_ROOT
HKCR
File associ­ations & OLE Object Class IDs
HKEY_C­URR­ENT­_USER
HKCU
Linked to the current User's key in HKU
HKEY_USERS
HKU
User profiles
HKEY_P­ERF­ORM­ANC­E_DATA
 
Win NT only but invisible
HKEY_D­YN_DATA
 
Win 98 only

Escape characters

\
"
Precede characters with a backslash '\'