Patching regedit remotely
Sorry for an MS post. But I challenge who NEVER worked with windows clients and servers.
Well, this post its about WSUS and “How to change remotely Regedit from Clients”. This is an neeeded step to networks which don’t use Windows Update and have a local server with all updates to local clients. We need to change the regedit from clients to make a link between clients and the local updates server WSUS.
We need first Pstools.
After, we need and script to execute a command remotely: Psexec. This command comes with Pstools. We will use a for to read a file, line by line and apply the regedit keys.
Create a file with clients names, just a client per line. And I put an errorfile in the end, to check some running problems.
@Echo Off
for /f %%a in (file_with_clients_names.txt) do (psexec \\%%a -u DOMAIN\USER-p -e cmd.exe /c “reg import \\UNC_PATH.reg”) 2> errorlog.txt
Cool? Please test first before execute!! Any feedback, comments.




