Windows-7

MDT 安裝不工作,失敗

  • July 26, 2019

我正在嘗試Windows 7 x86使用MDT 2013and WDS(Server 2012 R2) 進行部署,但它失敗了:

WDS 啟動litetouchWIM(32 位或 64 位)並由 Lite Touch 接管。我選擇任務序列Windows 7 x86,它會通過格式化和蘋果安裝映像(從 Windows 7 DVD 導入)。完成應用映像後,它會立即使安裝失敗,說明如下:

####################################
## Disk(1) was not found. Unable to continue
## Possible Cause: Missing Storage Driver.
#################################

Failure (7711) Disk OSDiskIndex(1) can not be found!
No answer file could be found
No answer file could be found
No answer file could be found
Failure (Err): 53: Copy File C:\MININT\unattended.xml to C:\Windows\Panther\Unattend.xml - File Not Found
Failure (5627): 2: Run DISM.exe
Litetouch deployment failed, Return Code = -2147465259 0x80004005
Failed to save environment to (80070057)
Failed to run the action: Format Secondary Disk.
Unknown error (Error: 00001E1F; Source: Unkown)
The execution engine ignored the failure of the action (Format Secondary Disk) and continues execution
Failed to run the action: Install Operating System
The execution of the group (Install OS) has failed and the execution of task sequence failed.
Unknown error (Error: 000015FB; source: Unkown)
Task Sequence Engine failed! Code: enExecutionFail
Task sequence execution failed with error code 80004005
Error Task Sequence Manager failed to execute task sequence. Code 0x80004005

我正在使用custom task sequence從頭開始建構的,這裡是:

<?xml version="1.0"?>
<sequence version="3.00" name="Custom Task Sequence" description="Sample Custom Task Sequence">
 <group expand="true" name="Initialization" description="Scans the system for compatibility and gathers users input." disable="false" continueOnError="false">
   <action />
   <step type="BDD_Gather" name="Gather" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="GatherLocalOnly" property="GatherLocalOnly">true</variable>
       <variable name="RulesFile" property="RulesFile"></variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIGather.wsf"</action>
   </step>
   <step type="BDD_Validate" name="Validate" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="ImageMemory" property="ImageMemory">768</variable>
       <variable name="ImageProcessorSpeed" property="ImageProcessorSpeed">800</variable>
       <variable name="ImageSize" property="ImageSize">0</variable>
       <variable name="VerifyOS" property="VerifyOS"></variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIValidate.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_SetVariableAction" name="Next Step" description="Used for Debugging" disable="false" continueOnError="false" successCodeList="0 3010">
     <defaultVarList>
       <variable name="VariableName" property="VariableName">STEP</variable>
       <variable name="VariableValue" property="VariableValue">PREP</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTISetVariable.wsf"</action>
   </step>
 </group>
 <group expand="true" name="Install Prep" description="Formats the disk and other prep." disable="false" continueOnError="false">
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Disable BDE Protectors" description="" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIDisableBDEProtectors.wsf"</action>
   </step>
   <action />
   <step type="SMS_TaskSequence_PartitionDiskAction" name="Format Primary Disk" description="Gets the primary disk ready for installation." disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="OSDDiskIndex" property="DiskIndex">0</variable>
       <variable name="OSDDiskType" property="DiskType">BASIC</variable>
       <variable name="DONotCreateExtraPartition" property="DONotCreateExtraPartition"></variable>
       <variable name="OSDDiskPartDoNotRemoveOEMPartitions" property="OSDDiskPartDoNotRemoveOEMPartitions"></variable>
       <variable name="OSDPartitions0Type" property="Partitions0Type">Primary</variable>
       <variable name="OSDPartitions0FileSystem" property="Partitions0FileSystem">NTFS</variable>
       <variable name="OSDPartitions0Bootable" property="Partitions0Bootable">True</variable>
       <variable name="OSDPartitions0QuickFormat" property="Partitions0QuickFormat">True</variable>
       <variable name="OSDPartitions0VolumeName" property="Partitions0VolumeName">Sea Drive</variable>
       <variable name="OSDPartitions0Size" property="Partitions0Size">100</variable>
       <variable name="OSDPartitions0SizeUnits" property="Partitions0SizeUnits">%</variable>
       <variable name="OSDPartitions0VolumeLetterVariable" property="Partitions0VolumeLetterVariable">OSDisk</variable>
       <variable name="OSDPartitions" property="Partitions">1</variable>
       <variable name="OSDPartitionStyle" property="PartitionStyle">MBR</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIDiskpart.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_PartitionDiskAction" name="Format Secondary Disk" description="Gets the secondary disk ready for use after installation." disable="false" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="OSDDiskIndex" property="DiskIndex">1</variable>
       <variable name="OSDDiskType" property="DiskType">BASIC</variable>
       <variable name="DONotCreateExtraPartition" property="DONotCreateExtraPartition">YES</variable>
       <variable name="OSDDiskPartDoNotRemoveOEMPartitions" property="OSDDiskPartDoNotRemoveOEMPartitions"></variable>
       <variable name="OSDPartitions0VolumeName" property="Partitions0VolumeName">Dhe Drive</variable>
       <variable name="OSDPartitions0Type" property="Partitions0Type">Primary</variable>
       <variable name="OSDPartitions0FileSystem" property="Partitions0FileSystem">NTFS</variable>
       <variable name="OSDPartitions0Size" property="Partitions0Size">100</variable>
       <variable name="OSDPartitions0SizeUnits" property="Partitions0SizeUnits">%</variable>
       <variable name="OSDPartitions0Bootable" property="Partitions0Bootable">False</variable>
       <variable name="OSDPartitions0QuickFormat" property="Partitions0QuickFormat">True</variable>
       <variable name="OSDPartitions0VolumeLetterVariable" property="Partitions0VolumeLetterVariable"></variable>
       <variable name="OSDPartitions" property="Partitions">1</variable>
       <variable name="OSDPartitionStyle" property="PartitionStyle">MBR</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIDiskpart.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Configure" description="Configures Unattended.xml" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIConfigure.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy Scripts" description="" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\LTICopyScripts.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_SetVariableAction" name="Next Step" description="Used for Debuging" disable="false" continueOnError="false" successCodeList="0 3010">
     <defaultVarList>
       <variable name="VariableName" property="VariableName">STEP</variable>
       <variable name="VariableValue" property="VariableValue">INSTALL</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTISetVariable.wsf"</action>
   </step>
   <condition>
     <expression type="SMS_TaskSequence_VariableConditionExpression">
       <variable name="Variable">STEP</variable>
       <variable name="Operator">equals</variable>
       <variable name="Value">PREP</variable>
     </expression>
   </condition>
 </group>
 <group expand="true" name="Install OS" description="Installs the operating system" disable="false" continueOnError="false">
   <action />
   <step type="BDD_InstallUpdatesOffline" name="Apply Packages" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="PackageSelectionProfile" property="PackageSelectionProfile">All Packages</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIPatches.wsf"</action>
   </step>
   <step type="BDD_InstallOS" name="Install Operating System" description="Installs the operating system." disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="OSGUID" property="OSGUID">{9c29937d-e430-40d3-8077-cc8fa2d9cf6e}</variable>
       <variable name="DestinationDisk" property="DestinationDisk">0</variable>
       <variable name="DestinationPartition" property="DestinationPartition">1</variable>
       <variable name="DestinationOSVariable" property="DestinationOSVariable">OSDisk</variable>
       <variable name="DestinationOSRefresh" property="DestinationOSRefresh"></variable>
       <variable name="DestinationOSDriveLetter" property="DestinationOSDriveLetter"></variable>
       <variable name="DestinationOSInstallType" property="DestinationOSInstallType">ByVariable</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\LTIApply.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy Scripts" description="Copies scripts to the local drive" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\LTICopyScripts.wsf"</action>
   </step>
   <step type="BDD_InjectDrivers" name="Inject Drivers" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="DriverSelectionProfile" property="DriverSelectionProfile">All Drivers</variable>
       <variable name="DriverInjectionMode" property="DriverInjectionMode">AUTO</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIDrivers.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Add WinRE" description="Adds windows recovery enviroment." disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIWinRE.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_SetVariableAction" name="Next Step" description="Used for Debugging" disable="false" continueOnError="false" successCodeList="0 3010">
     <defaultVarList>
       <variable name="VariableName" property="VariableName">STEP</variable>
       <variable name="VariableValue" property="VariableValue">POST</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTISetVariable.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RebootAction" name="Restart computer" description="Reboots the computer" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="SMSRebootMessage" property="Message"></variable>
       <variable name="SMSRebootTimeout" property="MessageTimeout">60</variable>
       <variable name="SMSRebootTarget" property="Target"></variable>
     </defaultVarList>
     <action>smsboot.exe /target:WinPE</action>
   </step>
   <condition>
     <expression type="SMS_TaskSequence_VariableConditionExpression">
       <variable name="Variable">STEP</variable>
       <variable name="Operator">equals</variable>
       <variable name="Value">INSTALL</variable>
     </expression>
   </condition>
 </group>
 <globalVarList>
   <variable name="OSGUID" property="OSGUID">{9c29937d-e430-40d3-8077-cc8fa2d9cf6e}</variable>
   <variable name="DestinationDisk" property="DestinationDisk">0</variable>
   <variable name="DestinationPartition" property="DestinationPartition">1</variable>
   <variable name="DestinationOSVariable" property="DestinationOSVariable">OSDisk</variable>
   <variable name="DestinationOSRefresh" property="DestinationOSRefresh"></variable>
   <variable name="DestinationOSDriveLetter" property="DestinationOSDriveLetter"></variable>
   <variable name="DestinationOSInstallType" property="DestinationOSInstallType">ByVariable</variable>
 </globalVarList>
 <group expand="true" name="Post Install" description="Stuff done after install of OS" disable="false" continueOnError="false">
   <action />
   <step type="BDD_Gather" name="Gather" description="" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="GatherLocalOnly" property="GatherLocalOnly">true</variable>
       <variable name="RulesFile" property="RulesFile"></variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIGather.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Post Apply Cleanup" description="" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\LTIApply.wsf" /post</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Tattoo" description="Adds machine information to system" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTITatoo.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Windows Updates" description="Installs updates before programs install." disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIWindowsUpdate.wsf"</action>
   </step>
   <step type="BDD_InstallApplication" name="Install Programs" description="this installs all programs that are set to install." disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="ApplicationGUID" property="ApplicationGUID"></variable>
       <variable name="ApplicationSuccessCodes" property="ApplicationSuccessCodes">0 3010</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIApplications.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RunCommandLineAction" name="Windows Updates" description="installs updates after applications install" disable="false" continueOnError="false" startIn="" successCodeList="0 3010" runIn="WinPEandFullOS">
     <defaultVarList>
       <variable name="PackageID" property="PackageID"></variable>
       <variable name="RunAsUser" property="RunAsUser">false</variable>
       <variable name="SMSTSRunCommandLineUserName" property="SMSTSRunCommandLineUserName"></variable>
       <variable name="SMSTSRunCommandLineUserPassword" property="SMSTSRunCommandLineUserPassword"></variable>
       <variable name="LoadProfile" property="LoadProfile">false</variable>
     </defaultVarList>
     <action>cscript.exe "%SCRIPTROOT%\ZTIWindowsUpdate.wsf"</action>
   </step>
   <step type="SMS_TaskSequence_RebootAction" name="Restart computer" description="Reboots the computer for good measure" disable="false" continueOnError="false" runIn="WinPEandFullOS" successCodeList="0 3010">
     <defaultVarList>
       <variable name="SMSRebootMessage" property="Message"></variable>
       <variable name="SMSRebootTimeout" property="MessageTimeout">60</variable>
       <variable name="SMSRebootTarget" property="Target"></variable>
     </defaultVarList>
     <action>smsboot.exe /target:WinPE</action>
   </step>
   <condition>
     <expression type="SMS_TaskSequence_VariableConditionExpression">
       <variable name="Variable">STEP</variable>
       <variable name="Operator">equals</variable>
       <variable name="Value">POST</variable>
     </expression>
   </condition>
 </group>
</sequence>

格式化輔助磁碟設置為如果失敗則繼續執行(以防客戶端沒有輔助磁碟)

有人可以告訴我出了什麼問題嗎?

我已經想通了:

在任務序列文件夾 ( [deploymentsharename]-> Control-> [task id]) 中沒有 unattend.xml 文件。自定義任務序列在創建時未生成。

我從我創建的客戶端任務序列中手動獲取了一個,然後我對其進行了編輯以滿足我對自定義任務序列的需求。

磁碟錯誤是因為不存在輔助磁碟。我將其設置為如果沒有要準備的輔助磁碟,它將自動跳過該步驟並繼續。

引用自:https://serverfault.com/questions/609729