BatchPatch Forums Home › Forums › BatchPatch Support Forum › Updating the registry
- This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by doug.
-
AuthorPosts
-
January 27, 2014 at 6:08 pm #8629HoldenParticipant
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
January 27, 2014 at 7:57 pm #9661dougModeratorT –
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
January 27, 2014 at 8:55 pm #9662HoldenParticipantHi 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.
January 27, 2014 at 9:21 pm #9663dougModeratorGreat! Glad you got it working.
-Doug
-
AuthorPosts
- You must be logged in to reply to this topic.