How to add, modify, or delete registry subkeys and values by using a .reg file
Jan 20, · Access Registry Editor by following this procedure: In Windows 10 or Windows , right-click or tap-and-hold the Start button and then choose Run. Prior to Windows , the Run dialog box is most easily available from the Apps screen. . Aug 29, · Another reason to acquire confidence at editing the registry, is so that you can repair a defective machine remotely. Officially, you edit the Vista registry by adding keys, or modifying values, colloquially, this process is called ‘tweaking the registry’, or ‘hacking the registry’.
Sometimes, as part of a troubleshooting step, or a registry hack of some kind, you may need to do some type of "work" in the Windows Registry. Maybe it's adding a new registry rehistry to fix some kind of bug with how Windows handles something or deleting a rogue registry value that's causing problems with a piece of hardware or a software program. Regardless of what you're doing, most people find the registry a bit overwhelming; it's huge and windosw very complex.
Plus, you've probably heard that even the slightest mistake in there on your part could render your registr useless. Do not fear! It's really not that difficult to make changes in the registry if you know what you're doing. Follow the steps below to modify, add to, or delete parts of the Windows Registry:. The directions work the same way no matter which version of Windows you're using.
Hopefully, this was your initial thought as well, but before you get into any of the specific to-dos outlined in the next several sections, start by backing up the windiws. Basically, this involves selecting the keys you'll be removing or making changes to, or even the entire registry itself, and then exporting it to a REG file. If your registry edits don't go well and you need to undo your changes, you'll be very happy that you were proactive and chose to back up.
Randomly adding a new registry key or a collection of registry values probably won't hurt anything, but it isn't going to do you much good, either. However, there are a few instances where you might add a registry value, or even a new registry key, to the Windows Registry to accomplish windoqs very specific goal, usually to enable a feature or fix a problem. For example, an early bug in Windows 10 made two-finger wondows on the touchpad on some Lenovo how to put your child to bed stop working.
The fix involved adding a new registry value what are the uses of guinea corn a specific, pre-existing registry key.
No matter what tutorial you're following to fix whatever issue, or add whatever feature, here's how to add new keys and values to the Windows Registry:. Execute regedit to start Registry Editor. See How to Open Registry Editor if you need help. On the left side of the editor, navigate to the registry key that you want to add vistw key to, usually referred to as a subkeyor the key you want to add a value to. You can't add additional top-level keys to the registry. These are special keys, called registry hivesand are preset by Windows.
You can, however, add new values and keys directly under an existing registry hive. Once you've located the registry key you want to add to, you can add the key or value you want to add:.
See What Is a Registry Value? Close the open Registry Editor window. Just do it if you're not sure. Hopefully, whatever thing you were trying to accomplish with these registry additions worked out, but if not, check again that you added the key or value to the correct area of the registry and that you've named this new data properly.
Like you read above, adding a regkstry key or value that regixtry have a purpose doesn't usually cause a problem, but renaming an existing registry key, or changing the value of an existing value, will do something. Hopefully, that something is what you're after, but we make this point to stress that you should be very careful when changing existing parts of the registry. Those keys and values are already there, presumably for a good how to test vo2 max, so make sure yow advice you've gotten that led you to this point is as accurate as possible.
So long as you're careful, here's how to make different kinds of changes to existing keys and values in the Windows Registry:. Anywhere you have command line access will work fine. On the left side of Registry Editor, locate the key you how to make a good homepage to rename or the key that contains the value you want to change in some wincows.
Once you've located the part of the registry you want to make changes to, you can actually make those changes:. Close Registry Editor if you're done making changes. Restart your computer. Most changes to the registry, especially those that impact the operating system or its dependent parts, what do i clean my hardwood floors with take effect until you've restarted your computer, or at least signed out and retistry back edig Windows.
Assuming the keys and values that you made changes to visra doing something prior to your change, expect some kind of change in tp after you restart your PC. If that behavior isn't viwta you were after, it's time to dig up that backup you made. As crazy as it sounds, you tp sometimes need to delete eindows registry key or value, most often to fix a problem, likely caused by a program that added a particular key or value that it shouldn't have.
The UpperFilters and LowerFilters values issue comes to mind first. These two registry values, when located in a very particular key, are very often the root cause of certain errors you'll sometimes see in Device Manager. Don't forget regixtry back up, and then follow these steps exactly to remove wundows key or value from the Windows Registry:.
Rgistry Registry Editor by executing regedit from any command-line area in Windows. See How to Open Registry Editor if you need a bit more help than that. From the left pane in Hod Editor, drill down until you locate the degistry key that you want to delete or the key that contains the registry value you want to remove.
Once found, right-click or tap-and-hold on it and choose Delete. Remember that registry keys are a lot like the folders on your computer.
If you delete a key, you'll also delete any keys and values that exist within it! That's great if that's what you want to do, but if not, you may need to dig a bit deeper to how to use a metal weed pipe the keys or values you were really after. Next, you'll be asked to confirm the key or value deletion request, with either a Confirm Key Delete or Confirm Value Delete message, sindows, in one of these forms:.
In Windows XP, these messages are slightly different:. Whatever the message, select Yes to delete the key or value. The kind of thing that benefits from a value or key removal is usually the kind of thing that requires a PC restart to take effect. Hopefully, the answer to both questions is nobut if not, undoing what you've changed, added, or removed from the Windows Registry is super easy, assuming you backed up, which we recommended above as the first thing you should do.
Dig up that REG file your backup created and execute it, which will restore those saved sections of the Windows Registry back to where they were before you did anything. See How to Restore the Windows Registry hod you need more detailed help restoring your registry backup. Actively scan device characteristics for identification. Use precise geolocation data. Select personalised content. Windoqs a personalised content profile. Measure ad performance. Select basic ads. Create a personalised ads profile.
Select personalised ads. Apply market research to generate audience insights. Measure content performance. Develop and improve products. List of Partners vendors. Tim Fisher. General Manager, VP, Lifewire. He writes troubleshooting content and is the General Manager of Lifewire. Facebook Twitter LinkedIn. Updated on September 11, Tweet Share Email.
In This Article. First Step: Back up the Registry. Other Registry Changes. You can't rename registry hives, the top-level keys in the Windows Registry. You can't delete registry hives, the top-level keys you see in the editor. Was this page helpful? Thanks for letting us know! Email Address Sign up There was an error. Please try again. You're in! Thanks for signing up. There was an error. Tell us why! More from Lifewire. CCleaner v5. Your Privacy Rights.
To change or withdraw your consent choices for Lifewire. At any time, you can update your settings through the "EU Privacy" link at the bottom of vsta page. These choices will be signaled globally to our partners and will not affect browsing data. We and our partners process data to: Actively scan device regiztry for identification. I Accept Show Purposes.
Edit the Windows Registry from the Command Prompt
Nov 23, · For the most part, direct Registry editing means changing a value. Highlight the value in question in the right-pane of Regedit. Then choose "Modify" from the "Edit" menu or right-click the value and choose "Modify" from the context menu. For strings, a box like the one shown in the nearby picture will open/5(). Sep 11, · Once you've located the part of the registry you want to make changes to, you can actually make those changes: To rename a registry key, right-click or tap-and-hold on the key and choose Rename. Give the registry key a new name and then press Enter. Jun 23, · Open the Command Prompt as Admin To open the Command Prompt as an admin, type “cmd” in the Windows search bar. Next, right-click the “Command Prompt” app in the search results, and select “Run As Administrator” from the menu. Command Prompt will now open in admin mode, and we can begin editing the Windows registry.
All manual changes to the Windows Registry occur in Registry Editor, a tool included in all versions of Windows. Registry Editor lets you view, create, and modify the registry keys and registry values that make up the entire Windows Registry.
There's not an obvious shortcut for the tool in most versions of Windows, so the best way to open it is by executing it from a command line. Access Registry Editor by following this procedure:. In Windows 10 or Windows 8. Prior to Windows 8. In Windows 7 or Windows Vista, select Start.
In the search box or Run window, type the following, followed by Enter :. Depending on your version of Windows, and how it's configured, you may see a User Account Control dialog box where you'll need to confirm that you want to open Registry Editor. Registry Editor will open. If you've used Registry Editor before, it'll open up to the same location you were working in last time. If that happens, and you don't want to work with the keys or values at that location, just continue to minimize the registry keys until you've reached the top level, listing the various registry hives.
You can now make whatever changes you need to make to the registry, which probably shouldn't be done unless you're versed in how to safely add, change, or delete registry keys and values.
Make sure, whatever you do, that you only affect the narrow registry areas that you intend to. Considering the significance of the registry on your Windows-based computer, we strongly recommend that you back up the registry , either the whole thing or even just the areas you're working in, before you do anything.
It's important to know how to restore the Window's Registry before using Registry Editor. This lets you add a REG file backup into the registry should something go wrong during editing. Even though Registry Editor is open and ready to be used, it's not always wise to make changes yourself, manually, especially if a program or automated service can do it for you. For example, if you're using Registry Editor to clear up residual or junk registry entries, you shouldn't do it yourself unless you're very sure that you know what you're doing.
Instead, use a free registry cleaner if you want to clear out common registry junk automatically. The same regedit command can be executed from Command Prompt. After opening Command Prompt , just type out the command and press Enter. Although the circumstance would have to be rare, yet another way to launch this tool is from Task Manager.
You might open it that way if you can't access the standard Run dialog box as described in Step 1 above, or if Explorer or Command Prompt won't open for some reason. If you find yourself opening this tool often, you can make a Registry Editor shortcut on your desktop. In some versions of Windows, you can drag the shortcut onto your taskbar for even quicker access. Opening a remote Windows Registry is a bit different of a process than the one described above for a local registry.
After opening a regular Registry Editor window, there's an additional step to find the remote registry. Actively scan device characteristics for identification. Use precise geolocation data. Select personalised content. Create a personalised content profile. Measure ad performance. Select basic ads. Create a personalised ads profile. Select personalised ads. Apply market research to generate audience insights. Measure content performance. Develop and improve products.
List of Partners vendors. Tim Fisher. General Manager, VP, Lifewire. He writes troubleshooting content and is the General Manager of Lifewire. Facebook Twitter LinkedIn. Updated on January 20, Ryan Perian. Lifewire Tech Review Board Member. Article reviewed on Feb 13, Tweet Share Email. Was this page helpful? Thanks for letting us know! Email Address Sign up There was an error. Please try again. You're in! Thanks for signing up. There was an error. Tell us why! More from Lifewire.
How to Remove Write Protection on Windows 10, 8, and 7. Your Privacy Rights. To change or withdraw your consent choices for Lifewire. At any time, you can update your settings through the "EU Privacy" link at the bottom of any page. These choices will be signaled globally to our partners and will not affect browsing data.
We and our partners process data to: Actively scan device characteristics for identification. I Accept Show Purposes.