?
Solved

REGCHG Syntax

Posted on 1997-06-24
2
Medium Priority
?
521 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
gantriis earned 300 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

752 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