|Hi all. first of all, this is one of my favourite reference sites. I have learned so much - so a big thank you to all who participate.|
I need to install outlook 2007 to machines that do not have it already. I am planning on using the scheduler to do this (or maybe psexec, but want to use AT for now).
However, I want to stagger the installs to avoid floodind the install server. My code is currently the following:
set /a NewMinute=%Minute%+3
FOR /F %%a IN ('NET VIEW') DO IF NOT EXIST "%%a\C$\Program Files\Microsoft Office\Office12\outlook.exe" AT %%a %Hour%:%NewMinute% /INTERACTIVE \\servername\ClientApps\Outlook2007\setup.bat
However as it stands, everyone it hits will get the +3 on the minute and away they go. I want to basically add a couple of minutes to each machine that matches the criteria.
PC1 "at" set to 1:11
PC2 "at" set to 1:13
and so on...
This is where I am stumped :) Does anyone know of how to loop it properly and increment the time statement?