Updating the registry

BatchPatch Forums Home Forums BatchPatch Support Forum Updating the registry

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8629
    Holden
    Participant

    I am trying to update the registry on a remote computer and I have been using “Remote Command 1” to do it. The entry I am using is

    regedit.exe /s “\LID01C06-SRV-06Software$EIOBoard8.0.79EIOBoardOutlook64.reg”

    When I execute it, it returns an Exit Code of 0, but the registry is not updated.

    I have tried running as a Deployment and it just hangs at Queued …

    Thanks in advance for your direction.

    T

    #9661
    doug
    Moderator

    T –

    Using “Remote Command 1” to import a .reg file will *not* work if the .reg file is located on a network drive. However, if the .reg file were placed on the target computer and then executed with a local path, it *would* work. The reason for this is because when BatchPatch is remotely executing a process/command on the target system, the remote process does not have access to any network drives and can only access the local system. The exit code 0, in this instance, is misleading. The regedit.exe process is successfully terminating, which is why it returns 0, but it’s not actually importing the .reg file.

    Using the “Deployment” action is the correct way to accomplish what you are trying to accomplish because it first copies the .reg file to the target computer before executing it with a local path as described above. I am not able to reproduce your issue of it hanging at “Queued…” nor am I sure why it might be happening.

    What version of BatchPatch are you running?

    What happens if you move the EIOBoardOutlook64.reg file to the machine that the BatchPatch console is running on instead of having it on a network drive?

    Also, what registry hive is the .reg file targeting? HKEY_LOCAL_MACHINE?

    Thanks,

    Doug

    #9662
    Holden
    Participant

    Hi Doug,

    OK, I got it to work. I removed the regedit.exe /s leaving me with …

    \LID01C06-SRV-06Software$EIOBoard8.0.79EIOBoardOutlook64.reg

    and I selected to copy the files to the local machine. I guess I just needed to go to lunch, I thought I had tried every possible iteration (I started with a batch file execution which kept failing, so I went with the raw reg file which I knew worked.)

    2014.1.1.12.47 is the version I am running.

    Thanks for the help.

    #9663
    doug
    Moderator

    Great! Glad you got it working.

    -Doug

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.