ADS job template that captures a compute node image for later deployment to nodes on the cluster. Generated by Michael Toot (Sakson & Taylor).

Visual Basic
Edit|Remove


<?xml version="1.0" encoding="utf-16"?>
<!-- 
    HPC Deployment Sample
-->
<!-- start sequence -->


<sequence version="1" description="HPC CCS Capture Image" command="capture-image.xml" xmlns="http://schemas.microsoft.com/ads/2003/sequence">
  <task description="Generic command to delete sysprep" doesReboot="false">
    <command target="device">cmd.exe</command>
    <parameters>
      <parameter>/c</parameter>
      <parameter>if exist c:\sysprep (rmdir /S /Q c:\sysprep)</parameter>
    </parameters>
  </task>
  <task description="Generic command create folder strucuture" doesReboot="false">
    <command target="device">cmd.exe</command>
    <parameters>
      <parameter>/c</parameter>
      <parameter>md c:\sysprep\i386</parameter>
    </parameters>
  </task>
  <task description="Download File Sysprep Tools" doesReboot="false">
    <command>/BMONITOR/BmFileXfer.exe</command>
    <parameters>
      <parameter>-d</parameter>
      <parameter>"c:\hpc-ccs\Sysprep\i386\sysprep.exe"</parameter>
      <parameter>"\device\harddisk0\partition1\sysprep\i386\sysprep.exe"</parameter>
    </parameters>
  </task>
  <task description="Download File Sysprep Tools" doesReboot="false">
    <command>/BMONITOR/BmFileXfer.exe</command>
    <parameters>
      <parameter>-d</parameter>
      <parameter>"C:\hpc-ccs\Sysprep\i386\setupcl.exe"</parameter>
      <parameter>"\device\harddisk0\partition1\sysprep\i386\setupcl.exe"</parameter>
    </parameters>
  </task>
  <task description="Download File Sysprep" doesReboot="false">
    <command>/BMONITOR/BmFileXfer.exe</command>
    <parameters>
      <parameter>-d</parameter>
      <parameter>"C:\hpc-ccs\Sysprep\sysprep.inf"</parameter>
      <parameter>"\device\harddisk0\partition1\sysprep\sysprep.inf"</parameter>
    </parameters>
  </task>
  <task description="sysprep target" doesReboot="true">
    <command>c:\sysprep\i386\sysprep.exe</command>
    <parameters>
      <parameter>-quiet</parameter>
      <parameter>-reseal</parameter>
      <parameter>-reboot</parameter>
    </parameters>
  </task>
  <task description="Boot to WinPE" doesReboot="false">
    <command>/PXE/boot-winpe</command>
  </task>
  <task description="Generic command change attributes on pagefile" doesReboot="false">
    <command target="device">cmd.exe</command>
    <parameters>
      <parameter>/c</parameter>
      <parameter>Attrib -r -h -s c:\pagefile.sys</parameter>
    </parameters>
  </task>
  <task description="Generic command to delete pagefile" doesReboot="false">
    <command target="device">cmd.exe</command>
    <parameters>
      <parameter>/c</parameter>
      <parameter>del c:\pagefile.sys</parameter>
    </parameters>
  </task>
  <!-- STEP 4 capture image -->
  <task description="Capture image" doesReboot="false">
    <command>/IMAGING/imgbmdeploy.exe</command>
    <parameters>
      <parameter>"$ImageName$"</parameter>
      <parameter>\device\harddisk0\partition1</parameter>
      <parameter>"$ImageName$"</parameter>
      <parameter>-c</parameter>
      <parameter>-client</parameter>
    </parameters>
  </task>
  <!-- STEP 5 update device record to always boot to winpe in the future
       The system disk has been syspreped so booting it to hd will cause it to run interactive mini setup -->
  <task description="Set default job template as boot to winpe" doesReboot="false">
    <command target="controller">C:\Program Files\Microsoft ADS\tools\adsdevice.wsf</command>
    <parameters>
      <parameter>-e</parameter>
      <parameter>$Device.System.Name$</parameter>
      <parameter>-jobtemplate</parameter>
      <parameter>boot-to-winpe</parameter>
    </parameters>
  </task>
</sequence>