Ok I tried this as it was and it didn't really work.
I am on a domain don’t know if that's why.
So here's what I did.
I tried it as is, to a single computer and checked the computer.
It seemed that the reg file was not importing.
I checked the script and saw
for /f "delims=," %%I IN (computer.txt) DO regedit.exe /s "\\%%I\C$\Program Files\FAH\FAH.reg"
Well this line looks to me that it would take the reg file from the other computer and import into the local machine of the computer I was installing from. It did
So I did some searching and found a tool that allowed remote registry importing (to import the REG file to the remote machine).
It's from Sysinternals and is freeware. It's called SysExec.
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml
So I added the file to the folder where the script is, and changed the line from:
Code:
for /f "delims=," %%I IN (computer.txt) DO regedit.exe /s "\\%%I\C$\Program Files\FAH\FAH.reg"
to
Code:
for /f "delims=," %%I IN (computer.txt) DO psexec \\%%I -s -i -d %windir%\regedit.exe /s "\\%%I\C$\Program Files\FAH\FAH.reg"
I also commented out the line to delete the reg file.
It works perfectly now.
I had been putting off this borg of a few machines just because I didn’t feel like doing it manually.
Thanks again Wedo.