I'm sure you guys out there who have used psexec will be able to answer this one fairly easily. I have written up a quick batch that allows me to run a utility remotely on computers over the network one at a time but I was looking to alter it so that the batch file could process a list of computers rather than one at a time. I need to run this utility remotely on approximately 40 computers so you could see the one at a time becoming a tedious process. I know PSEXEC is able to process a list but I can't seem to figure it out on my own and the /? from the command line is pretty confusing.
Again, the batch I have attached works fine, but it only works with the computername listed. I need to figure out how to get it to work pulling from a list instead. Anyone have any experience with this utility?
net use \\COMPUTERNAME\c$ /user:"domain\username"
copy /y file.exe \\COMPUTERNAME\c$\file.exe
"c:\pstools\psexec.exe" \\COMPUTERNAME -i -w c:\ c:\file.exe
net use \\COMPUTERNAME\c$ /delete /y