Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While using Linux I've grown accustomed to one-liners when I search online to fix annoying defaults. I know that these one liners could be very dangerous so I always make sure I know what they are doing before running them.

At the same time, I hate having to update windows registry keys because I need to open up regedit and navigate The Tree.

Is there an easy way to edit a specific registry value?

Something like:

regupdate path type newvalue
share|improve this question
    
"I hate having to update windows registry keys because I need to open up regedit and navigate The Tree." - Besides all the answers below, why not switch to a better registry editor that allows you to directly jump to a specific key? – Karan Nov 30 '12 at 0:43
    
@Karan I'm open to suggestions. – Annan Nov 30 '12 at 2:02
1  
up vote 4 down vote accepted

The Reg command does what you require.

share|improve this answer
    
This is what I'm looking for! I'm surprised I didn't hear about it before. – Annan Nov 30 '12 at 3:40

You can create a .REG file to update it for you.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]

"RunOnceHasShown"=dword:00000001

"RunOnceComplete"=dword:00000001

Copy the code into a new Notepad window, and save the file with a .REG extention. When you run it (i.e. START /w file.reg, it will ask you to merge the contents

share|improve this answer

If you're open to Powershell you could use its Set-ItemProperty cmdlet.
Here is an article on the subject.

share|improve this answer
    
PowerShell FTW! – Taylor Gibb Dec 8 '12 at 7:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .