Jump to content

How to Edit Windows Registry Via Command Prompt - Other Helpful Tutorials - InviteHawk - The #1 Trusted Source for Free Tracker Invites

Buy, Sell, Trade, or Find Free Invites for top private trackers like redacted, blutopia, losslessclub, femdomcult, filelist, Chdbits, Uhdbits, empornium, iptorrents, hdbits, gazellegames, animebytes, privatehd, myspleen, torrentleech, morethantv, bibliotik, alpharatio, blady, passthepopcorn, brokenstones, pornbay, cgpeers, cinemageddon, broadcasthenet, learnbits, torrentseeds, beyondhd, cinemaz, u2.dmhy, Karagarga, PTerclub, Nyaa.si, Polishtracker, and many more.

Recommended Posts


  • Member ID:  53,629
  • Followers:  0
  • Topic Count:  3,075
  • Topics Per Day:  1.55
  • Content Count:  3,094
  • Content Per Day:  1.56
  • Reputation:   105
  • Achievement Points:  4,020
  • Days Won:  0
  • Joined:  01/24/2021
  • Status:  Offline
  • Last Seen:  

How Do Windows Registries Work?

The information stored in Windows registries is organized on three different registry levels:

Registry Hives:

These are a collection of keys, subkeys, and registry values, represented by folders. These folders are categorized into subfolders depending on the type of data values they hold.

Registry Keys:

These are those subfolders that makeup Registry Hives. These are considered to be the standard unit of organization in windows registries. These are like the folders in the Windows File Explorer which holds different types of files on your computer. Similarly, Registry Keys holds the registry values.

Registry Values:

These are the instructions or information of configurations and system settings. Each registry value holds instruction for particular system settings, application, or associated configurations.

Read More: How to Add, Modify, & Delete Registry Keys & Values via Regedit

How to Edit Windows Registry Using Command Prompt?

In case, you need to tweak the Windows Registry; you can navigate through the process via the command prompt on a Windows 10 PC. All you need to do is follow the procedure below:

Opening the Command Prompt

First, Head to the Windows Search Bar.

Then, type cmd in the search bar. Search results will show Command Prompt as the top result.

Right-click on the Command Prompt option and click on Run as Administrator.

This will open up the command prompt on your Windows PC in admin mode.

Read More: How to Change Command Prompt Background

Operation Types to Edit Registries

Step 1: Run the following command to get all the list of operations you can perform to edit Windows Registry.

REG /?

Operation Types define what changes you need to make in a Windows Registry, for example, adding a subkey via the Add operation type.

Step 2: The command prompt will display all the operations along with the Return Code for each of those commands. Return Codes determine whether the command execution failed or succeeded.

Note: Microsoft provides the content in the tables below

OperationsTask

AddAdds a new entry to the registry

CompareCompares two or more registry subkeys or entries.

CopyCopies a registry entry to a specified location on a local or remote machine.

LoadWrites saved subkeys and entries into a different subkey in the registry. This is intended to be used with temp files that are used for troubleshooting or editing registry entries.

RestoreWrites saved subkeys and entries back to the registry.

QueryReturns a list of the next tier of subkeys and entries that are located under a specified subkey in the registry.

ImportCopies the contents of a file that contains exported registry subkeys, entries, and values into the registry of the local computer.

ExportCopies the specified subkeys, entries, and values of the local computer into a file for transfer to other servers.

SaveSaves a copy of specified subkeys, entries, and values of the registry in a specified file.

DeleteDeletes a subkey or entries.

UnloadRemoves a section of the registry that was loaded using the REG LOAD  operation.

Source: Microsoft

Return CodesResults

0Success

1Fail

Source: Microsoft

Finding Syntax

To find a syntax, all you need to do is add the Operation Name in between the previous REG command. Just like this –

REG <Operation>

This particular step will produce all the information you need about that particular operation, including all the parameters and syntax. Let’s find the syntax by taking the example of the Add operation type.

Executing An Edit Task Using Operation Types: Adding a Subkey or Entry

Step 1: You can add a subkey to the registry via the Add operation. To begin with an edit, you need to put the operation type in between the REG command.

Since we’re using the Add operation type, you need to type the command –

REG <Add>

Step 2: The Syntax is right there in the second line of the prompt – 

REG ADD <KeyName> [{/v ValueName | /ve}] [/t DataType] [/s Separator] [/d Data] [/f]

Here –

<KeyName> specifies the path of the subkey. Usually, the root keys used as a path are designated by HKLM or HKU.

/v ValueName specifies the name of the subkey.

The other syntax parameters are not needed in case of Add operation type.

Step 3: Assuming your subkey name is – MySubkey; the command that’ll go with the operation type will be –

REG ADD HKLM\Software\MySubkey

Deleting a Subkey

Step 1: The syntax of Delete operation is –

REG DELETE <KeyName> [{/v ValueName | /ve | /va}] [/f]

Step 2: Assuming you need to delete the same subkey you created in the previous step; the command will be –

REG DELETE HKLM\Software\MySubkey

Step 3: Type YES to confirm the delete command.

Step 4: Press Enter.

These are just two operations. Every operation requires a different syntax which you now know how to figure out, and each carries out different tasks. You can visit this document published by Microsoft to learn more about Registry Operation Types, Syntax, and Parameters.

Read More: How to Fix Registry Errors in Windows 10

Disclaimer: Why Refrain from Tweaking  Windows Registries?

Any change you make in Control Panel Settings, system associations, software or app installations, etc. are automatically reflected in the Windows Registry. In case, you try to edit the Windows Registries manually; you may end up corrupting any of these settings, configurations, and system policies. This can lead to several computer problems, such as system crashes, corrupt applications, unbootable drives, problems in saved files and system folders.

Hence it is recommended that you do not try to tweak the Windows Registry unless you are entirely aware of all the syntax and parameters or you are not in dire need to do it.


  • Member ID:  48,211
  • Followers:  60
  • Topic Count:  144
  • Topics Per Day:  0.06
  • Content Count:  30,037
  • Content Per Day:  13.22
  • Reputation:   2,202
  • Achievement Points:  38,170
  • Days Won:  11
  • Joined:  04/09/2020
  • Status:  Offline
  • Last Seen:  

Avoid unnecessary posts such as 'Thank you', 'Welcome', etc. Such posts will be deleted and user will be warned if it happens again. If caught spamming, the following actions are applicable -

  • First time - Warning
  • Second time - 5000 Points will be deducted
  • Third time - Ban for 7 days
  • Fourth time - Permanent Ban

If the post helped you, reward the user by reacting to the post like this -

download.png

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Read this before posting -
  • Only post if you have something valuable to contribute.
  • Avoid unnecessary posts such as 'Thank you', 'Welcome', etc. Such posts will be deleted and you will be warned if it happens again.
  • If the post helped you, reward the user by reacting to the post like this -                      1.jpg
Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Customer Reviews

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.