adding registry value on remote machine

Posted on 2011-10-16
Last Modified: 2012-05-12
I'm using the following to add a value and data to the Run key on a remote machine:

reg add \\\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion /v test /d 123
The operation completed successfully.
but when opening that key using the regedit on the remote machine, the value and data is not there.

also, when using the same command again, I see the following question:
Value test exists, overwrite(Yes/No)?

Question by:OrenRozen
    LVL 5

    Expert Comment

    When you open regedit and connect to a network register (
    you do see the added registry then?

    LVL 3

    Author Comment

    LVL 3

    Accepted Solution

    Hi Oren,

    1. You need to make sure "remote registry" service is running.
    2. I would specify the type (/t) also in the command.
    3. Personally I'm using psexec by sysinternals for remote commands, works great.

    Good luck!
    LVL 3

    Author Comment

    1. the service is running. (I can connect from my pcto the remote machine using regedit)
    2. /t didn't solve the problem
    3. I'm trying to avoid external applications.
    LVL 27

    Expert Comment

    If these are domain computers you can use Group Policy Pref. to set the registry values.
    LVL 3

    Author Comment

    I've requested that this question be closed as follows:

    Accepted answer: 0 points for OrenRozen's comment http:/Q_27399268.html#36976322

    for the following reason:

    I had 2 problems.<br />The first was solved with your first suggestion to start the service.<br />The second problem was my mistake in spelling.<br /><br />Thanks for the help.
    LVL 3

    Author Comment

    closed my own comment by mistake.
    would like to post same reply and point to V4705:
    LVL 3

    Author Closing Comment

    Sorry. Closed on my own comment by mistake.

    I had 2 problems.
    The first was solved with your first suggestion to start the service.
    The second problem was my mistake in spelling.

    Thanks for the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Don't lose your head updating email signatures!

    Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users should you!

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

    794 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

    14 Experts available now in Live!

    Get 1:1 Help Now