Master script: for each IP on the list, copy executables to remote machine
then run the copied script to install each
:: optionally, throw in "start /b", ==> do start /b copy
FOR /F "eol=; tokens=1* delims=, " %%i in (only_IPs_with_names.txt) do
copy aawseplus.exe \\%%i\c$\aawseplus.exe
FOR /F "eol=; tokens=1* delims=, " %%i in (only_IPs_with_names.txt) do
copy spybotsd160.msi \\%%i\c$\spybotsd160.msi
::FOR /F "eol=; tokens=1* delims=, " %%i in (only_IPs_with_names.txt)
do copy clamAV.msi \\%%i\c$\clamAV.msi
FOR /F "eol=; tokens=1* delims=, " %%i in (only_IPs_with_names.txt) do
copy localrunner.cmd \\%%i\c$\localrunner.cmd
:pause
FOR /F "eol=; tokens=1* delims=, " %%i in (only_IPs_with_names.txt) do
psexec \\%%i c:\localrunner.cmd
"local" script: installs the copied executables
if NOT EXIST "C:\Program Files\Lavasoft\Ad-Aware SE Plus\Ad-Aware.exe"
(c:\aawseplus.exe /s)
if NOT EXIST "C:\Program Files\Spybot - Search & Destroy\SDMain.exe"
(c:\spybotsd160.msi /quiet /norestart)
::if NOT EXIST "C:\Program Files\clamAV\clamd.exe" (c:\spybotsd160.msi
/quiet /norestart)
"runner" script: runs via CLI installed programs silently
:: http://www.safer-networking.org/en/faq/30.html
"C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe" /autoupdate /autocheck /autofix /autoclose /autoimmunize
http://www.lavasoftsupport.com/index.php?showtopic=205
http://discussions.virtualdr.com/showthread.php?t=190960
http://www.lavasoftsupport.com/index.php?showtopic=8989
xcopy defs.ref "C:\Program Files\Lavasoft\Ad-Aware SE Plus\defs.ref" /r /y
:: ad-aware se plus, so we get to use
"C:\Program Files\Lavasoft\Ad-Aware SE Plus\ad-aware.exe" /full +auto +nice+1 +update