Main navigation

Sysprep and Capture Task Sequence failed in MDT 2013

Last week i decide to Capture a fresh installation of Windows Server 2012 R2 with Last Windows Updates and Antivirus. Because It takes me lot of time every time that must be install new Server.

The configuration to capture Windows Server 2012 in MDT 2013 it's ready. I have explain step by step in How to Capture Windows Image using MDT 2013 how can do it. So i start the proccess to capturing the Windows Server 2012 R2.

Suddenly After 5 minutes i get an error and the Capturing Stopped. The error was

Why? I have use Capture with SysPrep in MDT 2013 lot of times with Windows 7 and Windows Server 2008. I check my configuration in MDT 2013 for errors but nothing. I try again again and the result was the same.

I start a research to find why this happened and after hour i found why MDT 2013 behaviour with this way when you try to capture Windows Server 2012.

Base on Microsoft in https://support.microsoft.com/en-us/kb/2797676 this error happened because << LTIApply.wsf script fails to check for the existence of the boot folder on the system partition before the script runs the takeown.exe command to change ownership on the folder. The takeown.execommand fails with a "Not Found" error if the boot folder doesn't exist. This causes the Sysprep and Capture task sequence to fail.>>

The error applies to Windows 8,8.1 and Windows Server 2012,

To resolve this error follow the steps

Open C:\Program files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts\ from the Server which has install MDT 2013

Find and open the file LTIApply.wsf

Locate the Copy bootmgr and in the next line copy the following lineIf not oFSO.FolderExists(sBootDrive & "\Boot") then oFSO.CreateFolder(sBootDrive & "\Boot") End if

​

Save the file and start again to Capture the Windows Server 2012 R2,

The Capture will be complete successfull without errors.

Of course the behaviour will be different for every user and maybe has to face another errors.

Now it's your turn to tell us for your errors that face in Capturing or Deployment with MDT 2013. You can share through our commenting system and learn from them. Try it now.

Askme4Tech is my Blog to the IT Community. From this site i share tips, news and in depth tutorials for IT Professionals working with Microsoft products.

My goal is to create a share Knowledge base for IT Professionals and Power Users that works with Microsoft Products and to provide valuable help in daily technical problems and keep up to date with news from IT industry.