SCCM2012 / MDT2012: Error while importing Microsoft Deployment Toolkit Task Sequence.

Posted on 2014-02-26
Last Modified: 2014-03-07
Windows Server 2008 R2 Enterprise
Virtual Machine
8GB Ram
SCCM2012: ver 5.00.7804.1000
MDT2012 U1: ver 6.1.2373.0
ADK8: ver 8.59.25584

     Ok---so I am very new to the SCCM and MDT utilities-----just following along with some tutorials. I am trying to create a "MDT Task Sequence" while using the SCCM2012 console. Yes I have opened the console as an administrator (run as), ran the "configure configmgr integration" applet as an administrator (run as).
     I created a share in my deployment share called CMPackages----I defined the sequence to create all new items---not referencing anything previously made----except for the Win7x86 iso in the VM's CDRom. Inside CMPackages share---3 out of 5 folders get created:

1)  BootImagePackage
2)  MDTToolkitPackage
3)  SourceWin7Package
All of which I defined in the MDT Task Sequence

The 2 that don't get created are:
4)  USMTPackage
5)  SettingsPackage
Both of which I also defined in the MDT Task Sequence
And then I get the below error.

I have read much the past 2 days concerning "Error while importing Microsoft Deployment Toolkit Task Sequence"---but nothing quite like mine-----System.ComponentModel.Win32Exception (0x80004005): Incorrect function

     Most have to do with having proper permissions to your "share" and having the machine account and the system account with full permissions, yada, yada, yada-----I have all that----Hell I gave the guy down the street full permissions.....but still the error persists.
     I also uninstalled the anti-virus software and rebooted----just to make sure it wasn't getting in the way-----the error still persists..........
     Could really use some help...........See error below

Started processing.
Creating boot image.
Copying WIM file.
Mounting WIM file.
WIM file mounted.
Setting Windows PE system root.
Set Windows PE system root.
Set Windows PE scratch space.
Adding standard components.
Adding component: winpe-mdac
Adding extra content from: C:\Users\jbadmin\AppData\Local\Temp\2\tsvenkgc.t0n
Unmounting WIM.
Copying WIM to the package source directory.
Creating boot image package.
Updating boot image to enable lab shell.
Boot image created.
Creating MDT files package.
Microsoft Deployment Toolkit files package created.
Creating OS install package.
Error while importing Microsoft Deployment Toolkit Task Sequence.

System.ComponentModel.Win32Exception (0x80004005): Incorrect function
   at Microsoft.BDD.Core.DirectoryUtility.CopyFile(DEInfo sourceFile, DEInfo destFile, String destFullName)
   at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
   at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
   at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
   at Microsoft.BDD.Core.DirectoryUtility.CopyDirectory(String theSource, String theDest)
   at Microsoft.BDD.Core.DirectoryUtility.BeginCopy()
   at Microsoft.BDD.Wizards.SCCM_ImportTaskSequenceTask.DoWork(SmsPageData smspageData, Dictionary`2 data)
Question by:JBenco
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 18

Accepted Solution

Mike T earned 500 total points
ID: 39897053

First i would double-check that all the steps in the task-sequence have packages or settings assigned. SCCM does not create the USMT package itself - you give it the files to use.

Beyond that I would remove the MDT integration and try re-installing it. I've had problems before and re-installing sorted it. You only need to run the integration with admin - the console has permissions set within security/roles.

Maybe attach the XML task-sequence file here for us to have a look. Remove keys or anything sensitive :).


Author Comment

ID: 39900415
Hi Mike-----it seems for what ever reason-----when the task sequence would be creating and it looks to the rom for the iso of win7-----it would only copy some of the files---and then error out.
So I took all of the fles from the win7 iso and put them in a share----then when creating the task sequence---I pointed it to look at the share instead of the rom----and it worked-----I have no idea why though. We are using a VM machine and with the iso mounted in the rom.
As far as uninstalling and reinstalling the MDT integration-----I did that----and still would error out.
Any thoughts on why the task creation would fail looking at the win7 iso????

LVL 18

Expert Comment

by:Mike T
ID: 39902095
Hi Joe,

The reason I mentioned double-checking the packages is because the task-sequence needs to use standalone packages for several parts:

sysprep (you can provide custom answer files)
MDT toolkit package (essential for scripting and "gather" steps
the OS

With the OS in particular you can't attach the ISO or even the CDROM during the build. You must provide the source files up front.

If you already have an existing image (in ISO format) that you want to use that's fine.
Take a look at step 3 on this blog:

When you click "Add operating system" the wizard gives you the choice of using a DVD or providing a folder path with ALL the source files copied to it. SCCM then looks for a WIM file in that path and copies just that into it's package library. Then it distributes the OS to any distribution points. You can force this later if you forget.

This process is the same for all software - patches, drivers and apps.

So, it makes sense to get organised and create a software SOURCE library in Explorer before you even touch SCCM. Then when it asks for files you point it there. SCCM 2012 squirrels the files away into it's own obscure path but you can ignore that. Just remember the mantra "distribution points". When you first start out and sat waiting for an app to deploy it's often because you forgot the extra step of distribution points.

Building your OS in a VM is the best method by the way as there are no drivers to worry about.

Glad you worked it out.


Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps ( Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question