Regedit essentials
Navigate, search, edit, export and import with Registry Editor efficiently and safely.
Open it the right way
Run regedit from Start, Run (Win+R) or a terminal. Editing HKLM needs an elevated session; Regedit asks for elevation through UAC. Open a second instance with regedit -m to compare two places side by side.
Move around fast
- Address bar: paste a full path such as
HKLM\SYSTEM\CurrentControlSet\Services\TermServiceand press Enter. Short names (HKLM, HKCU) work. - Favorites: add keys you visit every day (Run keys, Policies, Terminal Server) from the Favorites menu. They're stored per user under
HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites. - Type to jump: with the tree focused, type the first letters of a subkey name.
- Copy Key Name (right-click a key) copies the full path for documentation or scripts.
- Regedit reopens at the last key you viewed. Sysinternals RegJump opens it directly at any path from the command line.
Search
Edit > Find (Ctrl+F) searches keys, value names and data from the selected key down. Narrow the start point first: searching from Computer through HKLM\SOFTWARE can take minutes. F3 finds the next match. For searches across the whole registry with a results list, use NirSoft RegScanner.
Edit values correctly
- New > DWORD (32-bit) Value is the right choice for most numeric settings, even on 64-bit Windows. Use QWORD only when the documentation says so.
- The edit dialog for DWORDs opens in Hexadecimal. Switch to Decimal before typing numbers such as ports or sizes.
- Value names aren't case-sensitive, but spelling matters: a typo creates a new, ignored value instead of failing.
- Check the 64-bit vs 32-bit view: 32-bit applications read
HKLM\SOFTWARE\WOW6432Node. See WOW6432Node.
Export and import
File > Export saves the selected branch (or everything) as a .reg text file, which is the quickest backup before an edit. Double-clicking a .reg file merges it after a prompt; regedit /s file.reg merges silently in scripts.
Windows Registry Editor Version 5.00
; create or update a value
[HKEY_LOCAL_MACHINE\SOFTWARE\Contoso\App]
"Mode"=dword:00000002
"Server"="app01.contoso.com"
; delete one value
[HKEY_LOCAL_MACHINE\SOFTWARE\Contoso\App]
"OldSetting"=-
; delete a whole key (note the minus sign)
[-HKEY_LOCAL_MACHINE\SOFTWARE\Contoso\Legacy]
A .reg import only adds or changes what the file lists. It doesn't remove values that exist on the machine but not in the file, so "importing a backup" isn't a full rollback. For a true point-in-time copy of a branch, use reg save / reg restore (next lessons).
Other things Regedit can do
- File > Connect Network Registry: edit HKLM and HKU of a remote machine (Remote registry).
- File > Load Hive / Unload Hive: open an offline hive file such as a user's NTUSER.DAT (Offline hives).
- Edit > Permissions: view and change a key's ACL (Permissions and auditing).
Safety rules worth adopting
- Export the key before you change it.
- Prefer the supported tool (Group Policy, Settings, PowerShell module, vendor console) when one exists. Search this site for the policy that writes the value.
- Change one thing at a time and write down what you did.
- Test on a non-production machine, especially for anything under
HKLM\SYSTEM.
Reference: Windows registry information for advanced users (Microsoft).