schedule incremental install

March 25, 2009 at 18:01:38
Specs: Windows XP
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:

@echo off
set Hour=%Time:~0,2%
set Minute=%Time:~3,2%
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.

For example:

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?

See More: schedule incremental install

Report •

March 26, 2009 at 13:17:45
This does not sound like an ideal distribution model. If you have Active Directory, try using its .MSI deployment options.

Report •
Related Solutions

Ask Question