Edit Windows Registry using Reg.exe in Windows 10

You can edit the Windows Registry with the help of Console Registry Tool or reg.exe. Reg.exe is a command-line utility with which you can perform almost all the task which you otherwise can with regedit.exe. Reg.exe in Windows 10/8/7, can be useful when you want to quickly make a change to the Windows Registry without opening registry editor and moreover and has the additional facility of being directly usable in scripts.

Reg.exe command line

To run the reg.exe, open cmd, type reg /? and hit Enter. This will show you the parameter list, syntax & the return codes.

The reg commands include:

  • Reg add
  •  Reg delete
  • Reg compare
  • Reg copy
  • Reg export
  • Reg import
  • Reg load
  • Reg query
  • Reg restore
  • Reg save
  • Reg unload.

For instance:

To add a new subkey or entry to the registry use:

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


To add the key HKLM\Software\MyCo on remote computer ABC, type:

 REG ADD \\ABC\HKLM\Software\MyCo

To add a registry entry to HKLM\Software\MyCo with a value named Data of type REG_BINARY and data of fe340ead, type:

REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead

To add a multivalued registry entry to HKLM\Software\MyCo with a value name of MRU of type REG_MULTI_SZ and data of fax\0mail\0\0, type:

REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail\0\0

To add an expanded registry entry to HKLM\Software\MyCo with a value name of Path of type REG_EXPAND_SZ and data of %systemroot%, type:

REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^%

To delete a subkey or entries from the registry use:

Reg delete <KeyName> [{/v ValueName | /ve | /va}] [/f]


To delete the registry key Timeout and its all subkeys and values, type:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout

To delete the registry value MTU under HKLM\Software\MyCo on the computer named ZODIAC, type:


For a full read & details visit Microsoft Technet. You may want to also read this post on how to edit Registry for another User.

These Windows Registry Basics and this post on Windows Registry Tips may also interest you!

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. Software Collection

    Very informative blog:-).i like it

  2. Ignotusperignotium

    Awesome, ty.

  3. VisComica

    I somehow moved my regedit and now i can’t access it.So i try to make my hkey local machine in c: but i can’t,if i can’t access regedit.Any ideas?

  4. That somehow doesn’t seem possible – I mean your moving regedit. Run system file checker https://www.thewindowsclub.com/how-to-run-system-file-checker-analyze-its-logs-in-windows-7-vista and then see if you can access the registry again.

  5. Rodolfo

    very good tip.

  6. I have a need to replace, in the registry, several instances of just the text “mcciprint2” with “printerscentral” on hundreds of computers. Is there any way I can do this from the command line? I have a way to run a .bat file on all the computers, but I’m just not sure how I can make this edit to the registry.



    Thank you very much for providing us this kind of software ,it made my Pc running very good .

  8. DBTwiddler

    I suggest adding instruction on whether or not you must run the cmd or reg as an elevated user like a local administrator. In a corporate or educational setting, end-users won’t have privileges to execute any of the programs for editing the registry.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 2 =