Re: sysprep and scheduled tasks

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bill Stewart (llib.trawets_at_yrautromhcnerf.moc)
Date: 01/14/05


Date: Fri, 14 Jan 2005 14:59:52 -0700

Brian MXP wrote:

> Does running sysprep (-mini -quiet -reseal) on XP automatically
> remove any previously created tasks (using either AT, schtasks or the
> Scheduled Tasks Wizard)? Is this by design?
>
> Are there any decent work-arounds people might know of? I'd like to
> embed a bunch of different maintenance tasks into a system image...

Hi Brian,

That's a good question. I don't know about any documented behavior of
sysprep with regards to .job files in the %SystemRoot%\Tasks directory.

However, a suggested workaround is to create a script containing
schtasks commands and place it in the [GuiRunOnce] section of the
sysprep.inf file. After starting the sysprepped machine, log on with an
administrator account and your desired jobs will get created. I have
used this method and it works well.

-- 
Bill Stewart