LKBEN10661: Howto add a regkey from a commandline on a remote server system


Symptom

You need to add a certain registry key from the command line on a remote computer system

Cause

none

Solution

You can use the reg command to do the job. The following shows an example how it can be used.

reg add \\<server_name>\hklm\system\currentcontrolset\services\ntds\parameters /v “NSPI Interface Protocol Sequence” /t REG_MULTI_SZ /d ncacn_http:6004

For more information you can use the following commands:

  REG QUERY /?
  REG ADD /?
  REG DELETE /?
  REG COPY /?
  REG SAVE /?
  REG RESTORE /?
  REG LOAD /?
  REG UNLOAD /?
  REG COMPARE /?
  REG EXPORT /?
  REG IMPORT /?

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.