Hi All,
Using the Prepare for Image Task I found that this task has CommandLine property which is used to initialize the sysprep settings and pass them to Client Agent handler. I've created a custom task and inherided from existing PreImage Task to get an access to CommandLine property from the configuration page. I was able to pass the command line and initialize the configuration file (you can see the config file below) but the sysprep runs without my commands. It looks strange that we do not have possibility to set up the command line and use it when the sysprep file runs.
Can you guys tell me is it possible to use this property or not? I will be glad to get any answers on my question.
Thanks,
Alexey
Configuration File:
<task guid="4c8848ae-0c78-4197-90a7-0b5e2c7147a6">
<name>Create Image_PrepareImage</name>
<description />
<agents>
<agent platform=".NETCLR Client Task Server" agentId="TaskServerHandler.TaskHandlers.PrepareImageTaskHandler, TaskServerHandler, Version=X.X.X.X, Culture=neutral, PublicKeyToken=6d9a5987cd33ce68" />
<agent platform="Win32" agentId="DeploymentSolutionAgent_Task" />
<agent platform="Unix" agentId="DeploymentSolutionAgent_Task" />
</agents>
<handlerXml>
<image>
<DomainCredential guid="@DomainCredentials">@DomainCredentialXML</DomainCredential>
<answerFile>
<fileType>Windows XP Professional</fileType>
<defaultFile>True</defaultFile>
<fileContent>
</fileContent>
</answerFile>
<sysprep>
<commandLine>-generalize -audit -quiet -reboot</commandLine>
<OSType>SOME S/N</OSType>
</sysprep>
<shutdown>
<reboot>Automation</reboot>
<SBSIPList>192.168.160.61</SBSIPList>
</shutdown>
</image>
</handlerXml>
<advanced>
<remoteExecAdvanced>
<priority value="Normal" compatibility="Exclusive" />
<kill enforce="True" maxMinutes="960" />
<platform configuredProviderGuid="00000000-0000-0000-0000-000000000000" />
</remoteExecAdvanced>
</advanced>
</task>