Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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  

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.