Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

WIN7-BuildANDCapture.xml

Publié le par damcuvelier

Replace Packages Name by packageName and save it as WIN7-BuildANDCapture.xml and import it into SCCM’s OSD section…

 

 

<?xml version="1.0"?>
<SmsTaskSequencePackage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BootImageID>%SITE%00148</BootImageID>
  <Category>Microsoft Deployment Toolkit</Category>
  <DependentProgram />
  <Description>Build the Windows 7 reference images</Description>
  <Duration>0</Duration>
  <Name>WIN7-BuildANDCapture</Name>
  <ProgramFlags>152084496</ProgramFlags>
  <SequenceData>
    <sequence version="3.00">
      <referenceList>
        <reference package="%SITE%00001" />
        <reference package="%SITE%00002" />
        <reference package="%SITE%00003" />
        <reference package="%SITE%00004" />
        <reference package="%SITE%00005" />
        <reference package="%SITE%00006" />
        <reference package="%SITE%00007" program="Install_auto_us-fr" />
        <reference package="%SITE%00008" />
      </referenceList>
      <globalVarList>
        <variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering">false</variable>
        <variable name="OSDAdapterCount" property="NumAdapters">0</variable>
      </globalVarList>
      <group name="WIN7-BuildANDCapture" description="Build the Windows 7 x64 reference images" continueOnError="true">
        <group name="Initialization" description="">
          <step type="SMS_TaskSequence_PartitionDiskAction" name="Format and Partition Disk" description="" runIn="WinPE" successCodeList="0">
            <condition>
              <operator type="or">
                <operator type="and">
                  <expression type="SMS_TaskSequence_VariableConditionExpression">
                    <variable name="Operator">equals</variable>
                    <variable name="Value">TRUE</variable>
                    <variable name="Variable">_SMSTSDownloadOnDemand</variable>
                  </expression>
                  <expression type="SMS_TaskSequence_VariableConditionExpression">
                    <variable name="Operator">equals</variable>
                    <variable name="Value">TRUE</variable>
                    <variable name="Variable">_SMSTSinWInPE</variable>
                  </expression>
                  <expression type="SMS_TaskSequence_VariableConditionExpression">
                    <variable name="Operator">notEquals</variable>
                    <variable name="Value">OEMMedia</variable>
                    <variable name="Variable">_SMSTSMediaType</variable>
                  </expression>
                </operator>
                <operator type="and">
                  <expression type="SMS_TaskSequence_VariableConditionExpression">
                    <variable name="Operator">equals</variable>
                    <variable name="Value">TRUE</variable>
                    <variable name="Variable">_SMSTSinWInPE</variable>
                  </expression>
                  <expression type="SMS_TaskSequence_VariableConditionExpression">
                    <variable name="Operator">equals</variable>
                    <variable name="Value">FullMedia</variable>
                    <variable name="Variable">_SMSTSMediaType</variable>
                  </expression>
                </operator>
              </operator>
            </condition>
            <action>osddiskpart.exe</action>
            <defaultVarList>
              <variable name="OSDDiskIndex" property="DiskIndex">0</variable>
              <variable name="OSDDiskType" property="DiskType">BASIC</variable>
              <variable name="OSDDiskpartBiosCompatibilityMode" property="DiskpartBiosCompatibilityMode">false</variable>
              <variable name="OSDGPTBootDisk" property="GPTBootDisk">false</variable>
              <variable name="OSDPartitionStyle" property="PartitionStyle">MBR</variable>
              <variable name="OSDPartitions" property="Partitions" hidden="true">1</variable>
              <variable name="OSDPartitions0Bootable" property="Partitions0Bootable">true</variable>
              <variable name="OSDPartitions0FileSystem" property="Partitions0FileSystem">NTFS</variable>
              <variable name="OSDPartitions0QuickFormat" property="Partitions0QuickFormat">true</variable>
              <variable name="OSDPartitions0Size" property="Partitions0Size">100</variable>
              <variable name="OSDPartitions0SizeUnits" property="Partitions0SizeUnits">PER%SITE%T</variable>
              <variable name="OSDPartitions0Type" property="Partitions0Type">PRIMARY</variable>
              <variable name="OSDPartitions0VolumeLetterVariable" property="Partitions0VolumeLetterVariable">OSDisk</variable>
              <variable name="OSDPartitions0VolumeName" property="Partitions0VolumeName">OSDisk</variable>
            </defaultVarList>
          </step>
          <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run:%SITE%00001 cscript.exe Scripts\ZTISCCM.wsf</action>
            <defaultVarList>
              <variable name="BDDPackageID" property="PackageID" hidden="true">%SITE%00001</variable>
            </defaultVarList>
          </step>
          <step type="BDD_Gather" name="Gather" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run:%SITE%00002 cscript.exe "%DeployRoot%\Scripts\ZTIGather.wsf"</action>
            <defaultVarList>
              <variable name="GatherLocalOnly" property="GatherLocalOnly">false</variable>
              <variable name="PackageID" property="PackageID" hidden="true">%SITE%00002</variable>
              <variable name="RulesFile" property="RulesFile">CustomSettings.ini</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Check Pre-reqs" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztiprereq.vbs"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztiprereq.vbs"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Wizard" description="Inputs: computer name, image x86/x64 ?, w/ office?, APP-v Config?" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run:%SITE%00003 wscript Build_Capture_StartHta.vbs</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">wscript Build_Capture_StartHta.vbs</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="PackageID" property="PackageID" hidden="true">%SITE%00003</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
        </group>
        <group name="Validation" description="">
          <group name="Non-Replace" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">False</variable>
                <variable name="Variable">_SMSTSinWinPE</variable>
              </expression>
            </condition>
            <step type="BDD_Validate" name="Validate" description="" runIn="WinPEandFullOS" successCodeList="0">
              <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIValidate.wsf"</action>
              <defaultVarList>
                <variable name="ImageMemory" property="ImageMemory">512</variable>
                <variable name="ImageProcessorSpeed" property="ImageProcessorSpeed">800</variable>
                <variable name="ImageSize" property="ImageSize">0</variable>
                <variable name="VerifyOS" property="VerifyOS">CLIENT</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_RunCommandLineAction" name="Check Bios" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
              <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztibioscheck.wsf"</action>
              <defaultVarList>
                <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztibioscheck.wsf"</variable>
                <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
                <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
                <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
              </defaultVarList>
            </step>
          </group>
        </group>
        <group name="Preinstall" description="">
          <group name="New Computer Only" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">True</variable>
                <variable name="Variable">_SMSTSinWInPE</variable>
              </expression>
            </condition>
            <step type="BDD_Validate" name="Validate" description="" runIn="WinPEandFullOS" successCodeList="0">
              <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIValidate.wsf"</action>
              <defaultVarList>
                <variable name="ImageMemory" property="ImageMemory">512</variable>
                <variable name="ImageProcessorSpeed" property="ImageProcessorSpeed">800</variable>
                <variable name="ImageSize" property="ImageSize">0</variable>
                <variable name="VerifyOS" property="VerifyOS">CLIENT</variable>
              </defaultVarList>
            </step>
            <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
              <action>smsswd.exe /run:%SITE%00001 cscript.exe Scripts\ZTISCCM.wsf</action>
              <defaultVarList>
                <variable name="BDDPackageID" property="PackageID" hidden="true">%SITE%00001</variable>
              </defaultVarList>
            </step>
            <step type="BDD_Gather" name="Gather" description="" runIn="WinPEandFullOS" successCodeList="0">
              <action>smsswd.exe /run:%SITE%00002 cscript.exe "%DeployRoot%\Scripts\ZTIGather.wsf"</action>
              <defaultVarList>
                <variable name="GatherLocalOnly" property="GatherLocalOnly">true</variable>
                <variable name="PackageID" property="PackageID" hidden="true">%SITE%00002</variable>
                <variable name="RulesFile" property="RulesFile">CustomSettings.ini</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_PartitionDiskAction" name="Format and Partition Disk" description="" runIn="WinPE" successCodeList="0">
              <condition>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">notEquals</variable>
                  <variable name="Value">TRUE</variable>
                  <variable name="Variable">_SMSTSDownloadOnDemand</variable>
                </expression>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">notEquals</variable>
                  <variable name="Value">FullMedia</variable>
                  <variable name="Variable">_SMSTSMediaType</variable>
                </expression>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">notEquals</variable>
                  <variable name="Value">OEMMedia</variable>
                  <variable name="Variable">_SMSTSMediaType</variable>
                </expression>
              </condition>
              <action>osddiskpart.exe</action>
              <defaultVarList>
                <variable name="OSDDiskIndex" property="DiskIndex">0</variable>
                <variable name="OSDDiskType" property="DiskType">BASIC</variable>
                <variable name="OSDDiskpartBiosCompatibilityMode" property="DiskpartBiosCompatibilityMode">false</variable>
                <variable name="OSDGPTBootDisk" property="GPTBootDisk">false</variable>
                <variable name="OSDPartitionStyle" property="PartitionStyle">MBR</variable>
                <variable name="OSDPartitions" property="Partitions" hidden="true">1</variable>
                <variable name="OSDPartitions0Bootable" property="Partitions0Bootable">true</variable>
                <variable name="OSDPartitions0FileSystem" property="Partitions0FileSystem">NTFS</variable>
                <variable name="OSDPartitions0QuickFormat" property="Partitions0QuickFormat">true</variable>
                <variable name="OSDPartitions0Size" property="Partitions0Size">100</variable>
                <variable name="OSDPartitions0SizeUnits" property="Partitions0SizeUnits">PER%SITE%T</variable>
                <variable name="OSDPartitions0Type" property="Partitions0Type">PRIMARY</variable>
                <variable name="OSDPartitions0VolumeLetterVariable" property="Partitions0VolumeLetterVariable">OSDisk</variable>
                <variable name="OSDPartitions0VolumeName" property="Partitions0VolumeName">OSDisk</variable>
              </defaultVarList>
            </step>
          </group>
        </group>
        <group name="Install" description="">
          <step type="SMS_TaskSequence_ApplyOperatingSystemAction" name="Apply Operating System Image" description="" runIn="WinPE" successCodeList="0">
            <action>OSDApplyOS.exe /install:%SITE%00004,%OSDInstallEditionIndex% "/config:%SITE%00002,%OSDConfigFileName%"</action>
            <defaultVarList>
              <variable name="OSDConfigFileName" property="ConfigFileName">unattend.xml</variable>
              <variable name="ConfigFilePackage" property="ConfigFilePackage" hidden="true">%SITE%00002</variable>
              <variable name="OSDInstallEditionIndex" property="InstallEditionIndex">1</variable>
              <variable name="InstallPackageID" property="InstallPackageID" hidden="true">%SITE%00004</variable>
            </defaultVarList>
          </step>
        </group>
        <group name="PostInstall" description="">
          <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run:%SITE%00001 cscript.exe Scripts\ZTISCCM.wsf</action>
            <defaultVarList>
              <variable name="BDDPackageID" property="PackageID" hidden="true">%SITE%00001</variable>
            </defaultVarList>
          </step>
          <step type="BDD_Gather" name="Gather" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIGather.wsf"</action>
            <defaultVarList>
              <variable name="GatherLocalOnly" property="GatherLocalOnly">true</variable>
              <variable name="RulesFile" property="RulesFile">
              </variable>
            </defaultVarList>
          </step>
          <step type="BDD_InstallLanguagePacksOffline" name="Install FR Language Pack (Offline)" description="" runIn="WinPE" successCodeList="0">
            <action>smsswd.exe /run:%SITE%00005 cscript.exe %DeployRoot%\Scripts\ZTIPatches.wsf</action>
            <defaultVarList>
              <variable name="PackageID" property="PackageID" hidden="true">%SITE%00005</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0">
            <action>osdwinsettings.exe /config</action>
            <defaultVarList>
              <variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable>
              <variable name="OSDProductKey" property="ProductKey">
              </variable>
              <variable name="OSDRandomAdminPassword" property="RandomAdminPassword">true</variable>
              <variable name="OSDRegisteredOrgName" property="RegisteredOrgName">Your_Compagny</variable>
              <variable name="OSDRegisteredUserName" property="RegisteredUserName">Your_Compagny</variable>
              <variable name="OSDServerLi%SITE%seConnectionLimit" property="ServerLi%SITE%seConnectionLimit">5</variable>
              <variable name="OSDTimeZone" property="TimeZone">Pacific Standard Time</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>osdnetsettings.exe configure</action>
            <defaultVarList>
              <variable name="OSDJoinAccount" property="DomainUsername">
              </variable>
              <variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable>
              <variable name="OSDNetworkJoinType" property="NetworkJoinType">1</variable>
              <variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable>
              <variable name="OSDWorkgroupName" property="WorkgroupName">WORKGROUP</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Configure" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\zticonfigure.wsf"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\zticonfigure.wsf"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_SetupWindowsAndSMSAction" name="Setup Windows and ConfigMgr" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>OSDSetupWindows.exe</action>
            <defaultVarList>
              <variable name="SMSClientInstallProperties" property="ClientInstallProperties">
              </variable>
              <variable name="_SMSClientPackageID" property="ClientPackageID">%SITE%00006</variable>
            </defaultVarList>
          </step>
        </group>
        <group name="Office" description="">
          <condition>
            <operator type="or">
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">With</variable>
                <variable name="Variable">OffConfigType</variable>
              </expression>
            </operator>
          </condition>
          <step type="SMS_TaskSequence_RebootAction" name="Restart Computer" description="~Configuration Manager Client" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsboot.exe /target:HD</action>
            <defaultVarList>
              <variable name="SMSRebootMessage" property="Message">
              </variable>
              <variable name="SMSRebootTimeout" property="MessageTimeout">1</variable>
              <variable name="SMSRebootTarget" property="Target" hidden="true">HD</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_InstallSoftwareAction" name="Install Office 2K10 STD MUI US+FR" description="" runIn="FullOS" successCodeList="0">
            <action>smsswd.exe /pkg:%SITE%00007 /install /basevar: /continueOnError:</action>
            <defaultVarList>
              <variable name="PackageID" property="PackageID" hidden="true">%SITE%00007</variable>
              <variable name="_SMSSWDProgramName" property="ProgramName">Install_auto_us-fr</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Rearm Office 2010 instal activation periode" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run:%SITE%00008 cscript RearmOffice2010InstallationActivation.vbs</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript RearmOffice2010InstallationActivation.vbs</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="PackageID" property="PackageID" hidden="true">%SITE%00008</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
        </group>
        <group name="State Update" description="">
          <step type="SMS_TaskSequence_RebootAction" name="Restart Computer" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsboot.exe /target:HD</action>
            <defaultVarList>
              <variable name="SMSRebootMessage" property="Message">
              </variable>
              <variable name="SMSRebootTimeout" property="MessageTimeout">1</variable>
              <variable name="SMSRebootTarget" property="Target" hidden="true">HD</variable>
            </defaultVarList>
          </step>
          <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run:%SITE%00001 cscript.exe Scripts\ZTISCCM.wsf</action>
            <defaultVarList>
              <variable name="BDDPackageID" property="PackageID" hidden="true">%SITE%00001</variable>
            </defaultVarList>
          </step>
          <step type="BDD_Gather" name="Gather" description="" runIn="WinPEandFullOS" successCodeList="0">
            <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIGather.wsf"</action>
            <defaultVarList>
              <variable name="GatherLocalOnly" property="GatherLocalOnly">true</variable>
              <variable name="RulesFile" property="RulesFile">
              </variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_InstallUpdateAction" name="Install Software Updates" description="" continueOnError="true" runIn="FullOS" successCodeList="0">
            <action>TSInstallSWUpdate.exe /target:%SMSInstallUpdateTarget%</action>
            <defaultVarList>
              <variable name="SMSInstallUpdateTarget" property="Target">All</variable>
            </defaultVarList>
          </step>
        </group>
        <group name="Capture the Reference Machine" description="">
          <group name="Capture the Reference Machine w/o Office" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">Without</variable>
                <variable name="Variable">OffConfigType</variable>
              </expression>
            </condition>
            <step type="SMS_TaskSequence_PrepareSMSClientAction" name="Prepare ConfigMgr Client" description="" runIn="FullOS" successCodeList="0">
              <action>osdpreparesmsclient.exe</action>
              <defaultVarList />
            </step>
            <step type="SMS_TaskSequence_PrepareOSAction" name="Prepare OS" description="" runIn="FullOS" successCodeList="0">
              <action>osdprepareos.exe /activate:%OSDKeepActivation% /bmsd:%OSDBuildStorageDriverList%</action>
              <defaultVarList>
                <variable name="OSDBuildStorageDriverList" property="BuildStorageDriverList">true</variable>
                <variable name="OSDKeepActivation" property="KeepActivation">false</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_CaptureSystemImageAction" name="Capture the Reference Machine" description="" runIn="WinPE" successCodeList="0">
              <action>osdcapturesystemimage.exe</action>
              <defaultVarList>
                <variable name="OSDCaptureDestination" property="CaptureDestination">\\PRO-W2K8-SCCM2.child.Your_Compagny.poc\DeploymentShare$\Captures\W7X64SYS.wim</variable>
                <variable name="OSDCaptureAccountPassword" property="CapturePassword">
                </variable>
                <variable name="OSDCaptureAccount" property="CaptureUsername">child\administrator</variable>
                <variable name="OSDImageCreator" property="ImageCreator">Administrator</variable>
                <variable name="OSDImageDescription" property="ImageDescription">
                </variable>
                <variable name="OSDImageVersion" property="ImageVersion">
                </variable>
              </defaultVarList>
            </step>
          </group>
          <group name="Capture the Reference Machine w/  Office" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">With</variable>
                <variable name="Variable">OffConfigType</variable>
              </expression>
            </condition>
            <step type="SMS_TaskSequence_PrepareSMSClientAction" name="Prepare ConfigMgr Client" description="" runIn="FullOS" successCodeList="0">
              <action>osdpreparesmsclient.exe</action>
              <defaultVarList />
            </step>
            <step type="SMS_TaskSequence_PrepareOSAction" name="Prepare OS" description="" runIn="FullOS" successCodeList="0">
              <action>osdprepareos.exe /activate:%OSDKeepActivation% /bmsd:%OSDBuildStorageDriverList%</action>
              <defaultVarList>
                <variable name="OSDBuildStorageDriverList" property="BuildStorageDriverList">true</variable>
                <variable name="OSDKeepActivation" property="KeepActivation">false</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_CaptureSystemImageAction" name="Capture the Reference Machine" description="" runIn="WinPE" successCodeList="0">
              <action>osdcapturesystemimage.exe</action>
              <defaultVarList>
                <variable name="OSDCaptureDestination" property="CaptureDestination">\\PRO-W2K8-SCCM2.child.Your_Compagny.poc\DeploymentShare$\Captures\W7X64OFF2010.wim</variable>
                <variable name="OSDCaptureAccountPassword" property="CapturePassword">
                </variable>
                <variable name="OSDCaptureAccount" property="CaptureUsername">child\administrator</variable>
                <variable name="OSDImageCreator" property="ImageCreator">Administrator</variable>
                <variable name="OSDImageDescription" property="ImageDescription">
                </variable>
                <variable name="OSDImageVersion" property="ImageVersion">
                </variable>
              </defaultVarList>
            </step>
          </group>
        </group>
      </group>
      <group name="Gather Logs and StateStore on Failure" description="">
        <condition>
          <expression type="SMS_TaskSequence_VariableConditionExpression">
            <variable name="Operator">equals</variable>
            <variable name="Value">false</variable>
            <variable name="Variable">_SMSTSLastActionSucceeded</variable>
          </expression>
        </condition>
        <step type="SMS_TaskSequence_SetVariableAction" name="Set Error Code" description="" runIn="WinPEandFullOS" successCodeList="0">
          <action>tsenv.exe "ErrorReturnCode=%_SMSTSLastActionRetCode%"</action>
          <defaultVarList>
            <variable name="VariableName" property="VariableName" hidden="true">ErrorReturnCode</variable>
            <variable name="VariableValue" property="VariableValue" hidden="true">%_SMSTSLastActionRetCode%</variable>
          </defaultVarList>
        </step>
        <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
          <action>smsswd.exe /run:%SITE%00001 cscript.exe Scripts\ZTISCCM.wsf</action>
          <defaultVarList>
            <variable name="BDDPackageID" property="PackageID" hidden="true">%SITE%00001</variable>
          </defaultVarList>
        </step>
        <step type="BDD_Gather" name="Gather" description="" runIn="WinPEandFullOS" successCodeList="0">
          <action>smsswd.exe /run:%SITE%00002 cscript.exe "%DeployRoot%\Scripts\ZTIGather.wsf"</action>
          <defaultVarList>
            <variable name="GatherLocalOnly" property="GatherLocalOnly">false</variable>
            <variable name="PackageID" property="PackageID" hidden="true">%SITE%00002</variable>
            <variable name="RulesFile" property="RulesFile">CustomSettings.ini</variable>
          </defaultVarList>
        </step>
        <step type="SMS_TaskSequence_RunCommandLineAction" name="Move State Store" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
          <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztimovestatestore.wsf"</action>
          <defaultVarList>
            <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztimovestatestore.wsf"</variable>
            <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
            <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
          </defaultVarList>
        </step>
        <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy Logs" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
          <action>smsswd.exe /run: cscript "%deployroot%\scripts\zticopylogs.wsf"</action>
          <defaultVarList>
            <variable name="CommandLine" property="CommandLine" hidden="true">cscript "%deployroot%\scripts\zticopylogs.wsf"</variable>
            <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
            <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
          </defaultVarList>
        </step>
        <step type="SMS_TaskSequence_RunCommandLineAction" name="Error in the task sequence" description="" disable="true" runIn="WinPEandFullOS" successCodeList="0">
          <action>smsswd.exe /run: cscript "%deployroot%\scripts\ztierrormsg.wsf"</action>
          <defaultVarList>
            <variable name="CommandLine" property="CommandLine" hidden="true">cscript "%deployroot%\scripts\ztierrormsg.wsf"</variable>
            <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
            <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
            <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0</variable>
          </defaultVarList>
        </step>
      </group>
    </sequence>
  </SequenceData>
  <SourceDate>2011-01-11T20:16:13</SourceDate>
  <SupportedOperatingSystems />
  <IconSize>0</IconSize>
</SmsTaskSequencePackage>

Commenter cet article