La tache Sysprep and Capture échoue pour Windows 8.1


  • Share on Pinterest

La séquence de tâche Sysprep and Capture échoue lors de la capture lorsqu’une image de Windows 8.1 ou Windows 8 qui a été installé à partir d’un média.
Ce problème affecte la séquence de tache Sysprep and capture dans produits suivants:

  • Microsoft Deployment 2012 Update 1
  • Microsoft Deployment Toolkit 2013

Vous pouvez voir les erreurs sur l’écran final:
[ecko_code_highlight]Deployment Summary

Failure
Operating system deployment did not complete successfully.
Please review the log files to determine the cause of the problem.
During the deployment process, 14 errors and 0 warning were reported.

Details …
ZTI ERROR – Unhandled error returned by LTIApply: Not found (-2147217406 0x80041002)
Litetouch deployment failed, Return Code = -2147467259 0x80004005
Failed to run the action: Apply Windows PE.
Not found (Error: 80041002; Source: WMI)
The execution of the group (Capture Image) has failed and the execution has been aborted.
An action failed.
Operation aborted (Error: 80004004; Source: Windows)
Failed to run the last action: Apply Windows PE. Execution of task sequence failed.
Not found (Error: 80041002; Source: WMI)
Task Sequence Engine failed! Code: enExecutionFail
Task sequence execution failed with error code 80004005
Error Task Sequence Manaqer failed to execute task sequence. Code 0x80004005[/ecko_code_highlight]
Aussi, lorsque vous vérifiez le fichier BDD.log, vous pouvez remarquer que les erreurs suivantes sont enregistrées:
[ecko_code_highlight]Taking ownership of C:\boot
About to run command: takeown.exe /F « C:\boot » /R /A /D Y
Command has been started (process ID 2748)
Return code from command = 1
ResetFolder: TakeOwn for C:\boot, RC = 1
ZTI ERROR – Unhandled error returned by LTIApply: Not found (-2147217406 0x80041002)[/ecko_code_highlight]
Ce problème se produit parce que le script LTIApply.wsf ne vérifie pas l’existence du dossier de démarrage sur la partition système avant que le script exécute la commande takeown.exe pour les permissions sur le dossier. La commande takeown.exe échoue avec une erreur « Not Found » si le dossier de démarrage n’existe pas. Cela provoque l’échec de la séquence de tâche.

Pour contourner ce problème, modifiez les fichiers suivants:

  • %DeployRoot%\Scripts\LTIApply.wsf
  • C:\Program files\Microsoft Deployment Toolkit\Templates\distribution\Scripts\LTIApply.wsf

Localisez la section « Copy bootmgr » dans le fichier LTIApply.wsf, puis ajoutez le code suivant au-dessus du code existant dans la section « Copy bootmgr »:
[ecko_code_highlight]If not oFSO.FolderExists(sBootDrive & « \Boot ») then
oFSO.CreateFolder(sBootDrive & « \Boot »)
End if[/ecko_code_highlight]

Plus d’infos: https://support.microsoft.com/kb/2797676