Solved

REGCHG Syntax

Posted on 1997-06-24
2
511 Views
Last Modified: 2013-12-28
The NT Resource Kit has two utilities, REGCHG and RREGCHG.  The Help on these is not clear about the syntax.  I need a working example of the syntax.  Specifically, how should the path and syntax parts of the command line be formatted, and does the value portion need to be enclosed in quotation marks?
0
Comment
Question by:hawkinsc
2 Comments
 
LVL 2

Accepted Solution

by:
gantriis earned 100 total points
ID: 1779155
Hi kawkinsc.

I agree with you. The lack of documentation doesn't exactly make this a user friendly utility.

First of all. This utility will only work with keys under the HKEY_LOCAL_MACHINE hive.

The only difference between regchg and rregchg is that rregchg has one more parameter (in the beginning of the parameter list) that enables the user to do the change on a remove computer ("rregchg \\MYSERVER xxx yyy ..." is equal to regchg xxx yyy ..." when run on the machine MYSERVER.

Assuming that you need to insert the below value in the registry on the machine NYMSERVER as a string value::

KEY:       HKEY_LOCAL_MACHINE\SOFTWARE\CoolApp\Parameters
VALUE: CoolFeatures = Yes

you would need to type this command line:

"RREGCHG \\MYSERVER  SOFTWARE\CoolApp\Parameters  CoolFeatures  REG_SZ  Yes"

I have inserted the complete command-line in "" but of course you chould not type them. Only use quotes if you need to insert a key/value/name containing spaces.

Hope this is the answer to your question.

Cheers
JG

0
 

Author Comment

by:hawkinsc
ID: 1779156
Thank you very much.  Additional Info I discovered:   If you have spaces in the path, key name, or value, you need to put quotation marks around the strings for these.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
How to record audio from input sources to your PC ā€“ connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 ā€“ both 32 bit & 64.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another dā€¦
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). ā€¦

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question