[SOLVED] How to edit registry with cmd?

Status
Not open for further replies.
Oct 22, 2021
4
0
10
I wish to edit the value from a dword-32-bit in the registry, how can i do that with the command prompt or powershell?
Disclaimer: I take responsibility for my OS and the actions i take, i dont need warnings i need only help.

I know it is possible to use cmd to edit registry, i just dont know the exact command for it.
For example it is very easy to create registry key with this command:
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\etc\etc /v Valuename /t REG_SZ /d valuedata /f
Just this is not what i want.
I wish only to know the exact command so i can put it into cmd and execut it so it will change the dword value to my desired choice.
Thank you..
 
I'm not warning your or anything, but there's no reason to not make a quick backup of the key you are about to edit beforehand. This can also be done from the Command Prompt or PS too. Use the "export" parameter.

Example only batch file:
Code:
@echo off
if not exist backup.reg (
reg.... export.... backup.reg
)

reg add .......

Tip: If you are about to edit this:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell
Make a backup of this:
HKEY_CURRENT_USER\Software\Microsoft\Windows

Using the Export parameter:
https://www.bleepingcomputer.com/tutorials/how-to-export-registry-key-in-windows/

Batch - If Not Exist info:
https://stackoverflow.com/questions/23735282/if-not-exist-command-in-batch-file
 
I'm not warning your or anything, but there's no reason to not make a quick backup of the key you are about to edit beforehand. This can also be done from the Command Prompt or PS too. Use the "export" parameter.

Example only batch file:
Code:
@echo off
if not exist backup.reg (
reg.... export.... backup.reg
)

reg add .......

Tip: If you are about to edit this:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell
Make a backup of this:
HKEY_CURRENT_USER\Software\Microsoft\Windows

Using the Export parameter:
https://www.bleepingcomputer.com/tutorials/how-to-export-registry-key-in-windows/

Batch - If Not Exist info:
https://stackoverflow.com/questions/23735282/if-not-exist-command-in-batch-file

already have a backup.
 
You Type: "Regedit" in Run.

This command will let you change things or correct things in the windows registry {Use at own Risk or Benefit}

Cant see why you need to run it from Command Prompt or PowerShell.

Hey sherkloch seems like you cant see because you are blind.
Infact i had only one simple question, which command i need to put in order to edit registry with command prompt.
And you are seriously wasting my time telling me how i can open the registry???
Lord have mercy humanity at its finest.
 
Status
Not open for further replies.