Home OS Windows How to edit the Registry from Command Prompt in Windows 10

How to edit the Registry from Command Prompt in Windows 10

The Windows Registry is a database of knowledge, settings, choices, and different values for software program and {hardware} put in on all variations of Microsoft Windows working programs. When a program is put in, a brand new subkey is created within the registry. This subkey incorporates settings particular to that program, comparable to its location, model, and first executable. Windows and plenty of third-party apps retailer settings within the registry. In this publish, we’ll present you edit the Registry from Command Prompt in Windows 10.

windows-registry-8

Edit Registry from Command Prompt

Adding, modifying, or deleting Windows registry subkeys and values ought to solely be accomplished by superior customers, admins, and IT professionals. Take warning earlier than you make modifications. Since this can be a registry operation, it’s endorsed that you just again up the registry or create a system restore level in case the process goes improper.

Once you have got taken the required precautionary measures, you possibly can proceed as follows:

Press Windows key + R to invoke the Run dialog.

In the Run dialog field, kind cmd after which press CTRL + SHIFT + ENTER to open Command Prompt in admin mode.

To get the listing of operations, run command the command beneath:

REG /?

The Operation List will seem, in addition to the Return Code for every command.

Here’s the listing of operations and what every does, as described by Microsoft:

  • Add: Adds a brand new subkey or entry to the registry.
  • Compare: Compares specified registry subkeys or entries.
  • Copy: Copies a registry entry to a specified location on an area or distant machine.
  • Delete: Deletes a subkey or entries.
  • Export: Copies the desired subkeys, entries, and values of the native pc right into a file for switch to different servers.
  • Import: Copies the contents of a file that incorporates exported registry subkeys, entries, and values into the registry of the native pc.
  • Load: Writes saved subkeys and entries into a special subkey within the registry. This is meant for use with temp information which might be used for troubleshooting or enhancing registry entries.
  • Query: Returns a listing of the subsequent tier of subkeys and entries which might be positioned und a specified subkey within the registry.
  • Restore: Writes saved subkeys and entries again to the registry.
  • Save: Saves a duplicate of specified subkeys, entries, and values of the registry in a specified file.
  • Unload: Removes a piece of the registry that was loaded utilizing the REG LOAD  operation.

And, the return codes:

To get assist for with a particular operation, append the operation title to the center of the earlier command:

REG <Operation> /?

Example, when you needed assistance on the Add operation, run the next command:

REG ADD /?

When the command executes, the entire data that you just want in regards to the specified operation is returned, together with the syntax, parameters, and even some examples.

Now that we all know all that we have to learn about REG ADD, let’s attempt to put it in motion.

Add a SubKey or Entry to the Registry

Edit the Registry from Command Prompt

To start, beneath is the syntax for REG ADD from utilizing the REG ADD /? command:

REG ADD <KeyName> [ /ve] [/t DataType] [/s Separator] [/d Data] [/f]

The <KeyName> specifies the complete path of the subkey. Valid root keys for the native pc are HKLM, HKCU, HKCR, HKU, and HKCC. You can use the HKLM and HKU root keys for distant computer systems. The /v <ValueName> specifies the title of the registry entry to be added below the desired subkey. We’ll outline the remainder of the parameters later, however for this instance, that is all we’ll want.

So, let’s say we need to add a subkey named TheWindowsClubSubkey below HKLMSoftware, the command (syntax) will appear to be this:

REG ADD HKLMSoftwareTheWindowsClubSubkey

Once the command executes the subkey shall be added to the registry. To affirm do the next:

HKEY_LOCAL_MACHINE > SOFTWARE > TheWindowsClubSubkey

Delete a SubKey or Entry from the Registry

To delete a subkey or entry from the registry, run the next syntax:

REG DELETE <KeyName> [ /ve ] [/f]

So, let’s say we need to delete/take away the subkey named TheWindowsClubSubkey below HKLMSoftware, the command (syntax) will appear to be this:

REG DELETE HKLMSoftwareTheWindowsClubSubkey

You’ll be prompted when you actually need to delete the subkey. Type Yes and hit Enter.

Once the command executes the subkey shall be deleted from the registry.

That’s it on edit the Registry from Command Prompt in Windows 10.

windows-registry-8

Most Popular

Bidgely Secures US$8 Million Financing from CIBC Innovation Banking to Accelerate Growth

MOUNTAIN VIEW, Calif.–(BUSINESS WIRE)–September 24, 2020– CIBC Innovation Banking is pleased to announce a US$8 million growth capital financing for cloud-based energy analytics software provider,...

Fintech Machine Learning Leader Attunely Secures $9M in Funding

New capital will support expansion of team; Attunely technology helps financial and creditl institutions better manage revenue recovery and the consumer experience SEATTLE–(BUSINESS WIRE)–September 24,...

Nvidia preemptively apologizes for limited RTX 3090 supply

What just happened? Nvidia underestimated demand for its RTX 3080 last week...

DisperSol Technologies Names David Snyder as Chief Financial Officer

Snyder to Drive Financing for Spin-Out of Clinical-Stage Drug Programs GEORGETOWN, Texas–(BUSINESS WIRE)–September 24, 2020– DisperSol Technologies LLC announced today that its Board of Directors has...

Recent Comments