Solved

REGCHG Syntax

Posted on 1997-06-24
2
501 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
Comment Utility
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
Comment Utility
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

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Join & Write a Comment

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now