Well this topic may be closed but I wanted to point out another way to change the registry of remote machines.
This requires the "remote registry" service to be enabled of course.
You could use the REG command and connect to a remote machine, adding/deleting/querying/etc. from and the command line, as defined at:
http://www.computerhope.com/reg.htmI recently got this to work so I was quite excited. The first batch file looks like the following, I call it WriteReg.bat:
************* start batch file *************
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD \\%1\%KEY% /V TITLE /D "CT Fix-Up" /f
REG ADD \\%1\%KEY%\001 /VE /D "Mapping Drive..." /f
REG ADD \\%1\%KEY%\001 /V 1 /D "cmd /c net use x: \\mhPCdesk14\c$" /f
REG ADD \\%1\%KEY%\005 /VE /D "Running Fix Ct..." /f
REG ADD \\%1\%KEY%\005 /V 1 /D "x:\fixct.bat" /f
REG ADD \\%1\%KEY%\010 /VE /D "Deleting Mapped Drive..." /f
REG ADD \\%1\%KEY%\010 /V 1 /D "cmd /c net use /delete x:" /f
pause
************* end batch file *************
I changed the computer name to protect the...computer name.
The second batch file, I call it fixct.bat, looks like the following was to perform a few actions on whatever specific PC. For instance the fixct.bat could contain:
************* start batch file *************
copy x:\file.txt c:\file.txt
systeminfo | find "Up Time" >> x:\uptimelog.txt
************* end batch file *************
Then I would simply point WriteReg at a PC from the command line:
C:\>WriteReg SomePC01
and those registry entries would be written to SomePC01's RunOnceEx key (a very useful key FYI).
Later, I finally found the right For loop command to make this batch file run through all the PC names in a text file one by one.
If we had a plain text file called pcnames.txt which contained exactly one PC name per line something like the following would work in a batch file (use just
%A on the normal command line)
for /F %%A in (C:\try\namelist.txt) do call WriteReg %%A
Would going through each line in the text file and write the registry entries to each over the network. I think you can export a list of PC names into a text file from "Admin Tools".
I would probably mention some caveats to this:I have done the above on a corporate network under my personal logon that has a lot of admin rights to all the PCs. For instance I can access/modify a remote computer's registry and access a PC's C$ share without having to type in credentials every time. If you don't have that level of access to your PC(s) then you have to type in credentials for each one or include username/password info in the batch file most likely.
I may have got a little carried away. Hope this helps though.