How to change Remote machine's Registry in batch

G

Guest

I use regedit.exe trying to change remote computer's registry, but the
regedit process runs of my own machine. I can manaully remote to the machine
to do it but there are over 400 machines. How can I deploy a xxx.reg file to
those machines.

Commands I used were:
regeit.exe /s c:\???.reg \\xx.xx.xx.xx\
regedit.exe /s \\xx.xx.xx.ab\???.reg \\xx.xx.xx.ab\

astargen
 
S

Shenan Stanley

astargen said:
I use regedit.exe trying to change remote computer's registry, but
the regedit process runs of my own machine. I can manaully remote
to the machine to do it but there are over 400 machines. How can I
deploy a xxx.reg file to those machines.

Commands I used were:
regeit.exe /s c:\???.reg \\xx.xx.xx.xx\
regedit.exe /s \\xx.xx.xx.ab\???.reg \\xx.xx.xx.ab\

PSEXEC and a script?
(I'd copy the .reg file to the remote machine and psexec regedit on that
machine, move on to next one in list.)
(In batch - using the for statement and a text file containing a list of the
machines..)

Use a group policy instead (assuming if there are 400 workstations - they
are in a domain?)
 
G

Guest

I use a batch file that copy .reg files to remote machines and call
regedit.exe to execute the .reg files on those machines. It failed with
"error: A remote machine was specified, the root key must be HKLM or HKU". It
looks like regedit command could not change HKCU on remote machines. Those
machines are all in a domain but I only have local administrator's right.

I have not tried psexec regedit.

Astargen
 
G

Guest

Your users will have rights to modify their own HKCU. Perhaps you would have
better luck using a login script or dropping a registry import script into
startup if you do not have the infrastructure for a login script.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top