A lightweight Windows library that opens the Windows Registry Editor directly at a specified registry key path.
- Open the registry at any path with a single method call
- Optional elevation via UAC (
runas) or suppressed UAC prompt - Returns the
Processhandle of the launched Registry Editor
- Windows (Windows-only library)
- .NET Standard 2.0 or higher (compatible with .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+)
Install via the .NET CLI:
dotnet add package RegJump// Open regedit at a specific key (no elevation)
RegJump.Open(@"HKCU\Software\Microsoft\Windows\CurrentVersion");
// Using full hive name
RegJump.Open(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services");
// Using the OpenAt alias
RegJump.OpenAt(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion");// Opens regedit via UAC prompt (runas)
RegJump.Open(@"HKLM\SYSTEM\CurrentControlSet\Control", runas: true);// Just opens regedit at its last visited location
RegJump.Open();
// With elevation
RegJump.Open(runas: true);using System.Diagnostics;
Process regedit = RegJump.Open(@"HKCU\Software\MyApp");
regedit.WaitForExit();Opens the Windows Registry Editor and navigates to path.
| Parameter | Type | Description |
|---|---|---|
path |
string |
Registry path in the format HIVE\SubKey\Path |
runas |
bool |
true to request elevation via UAC; false (default) to run as the current user without a UAC prompt |
Returns: Process — the started Registry Editor process.
Alias for Open(string path, bool runas). Identical behaviour.
Opens the Windows Registry Editor at its last visited location.
| Parameter | Type | Description |
|---|---|---|
runas |
bool |
true to request elevation via UAC; false (default) to run as the current user without a UAC prompt |
Returns: Process — the started Registry Editor process.
| Abbreviation | Full name |
|---|---|
HKLM |
HKEY_LOCAL_MACHINE |
HKCU |
HKEY_CURRENT_USER |
HKCR |
HKEY_CLASSES_ROOT |
HKU |
HKEY_USERS |
HKCC |
HKEY_CURRENT_CONFIG |
HKPD |
HKEY_PERFORMANCE_DATA |
RegJump navigates the Registry Editor by writing the desired path to
HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey before launching regedit.exe — the same mechanism used by Sysinternals RegJump.
When runas is false, the process is started with __COMPAT_LAYER=RUNASINVOKER to suppress any automatic UAC elevation prompt, ensuring the editor opens in the current user context regardless of manifest settings.
Contributions are welcome. Please open an issue first to discuss what you would like to change, then submit a pull request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'Add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
This project is licensed under the MIT License.