Kbase 20550: How to Chang Registry Values From Command Line-Local and Remote
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to Chang Registry Values From Command Line - both Local and Remote
GOAL:
reg.exe
FACT(s) (Environment):
Windows
FIX:
With reg.exe, available from the Windows NT Resource Kit, any Registry value can be modified but as an example, one use of this executable with Progress is to change the startup value of the ProService or AdminService services.
- The AdminService is set by default to automatic
and the
- ProService is set to manual.
You might prefer these settings to be different and be able to alter them after you do a silent unattended installation.
To use the command line to change the startup value for a service on a local computer, type the following at the command prompt and press the ENTER key:
REG UPDATE
HKLM\SYSTEM\CurrentControlSet\Services\servicename\Start=X
where servicename is the name of the service as it appears in the
Registry, and X is either a 2, a 3, or a 4 (representing automatic startup, manual startup, or disabled, respectively).
On a remote computer, you can also change the startup value for a service if you use the command line locally to type the following at the command prompt and press the ENTER key:
REG UPDATE
HKLM\SYSTEM\CurrentControlSet\Services\servicename\Start=X
\\servername
again where servicename is the name of the service as it appears in the Registry, and X is either a 2, a 3, or a 4 (representing automatic startup, manual startup, or disabled, respectively), and servername is the name of the remote server.
To see how the service name appears in the Registry, view the
following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Once again, reg.exe can be used for other Registry entries as well.