Windows 10 – Bare Metal Deployment (Part 1)

To keep my sanity I put the in-place upgrade work I was doing aside for the time being and instead focus on the “traditional” wipe and reload sequence.

I also decided to try a different approach and do away with using a custom generated base image captured using MDT.  Over time we’ve pulled more and more out of our base images.  As I was preparing a build and capture sequence in MDT I realized that there were only about 20 customization actions that I was making for my image.  Most of those turned out to be installing some enterprise-wide applications that we were in fact upgrading during deployment.  Other settings were things like creating shortcuts, or Registry keys… Hello!  Group Policy Preferences!!!

So, I decided why setup and use one MDT task sequence to capture a lightly customized image that I then import into SCCM and then setup another task sequence to deploy it?  I’ll just use the factory image direct from Microsoft.  When it comes time to patch I’ll use the Offline Servicing feature of SCCM.

I may be asking for trouble with this but….

“Failure is the opportunity to begin again more intelligently.”
– Henry Ford

I started with a basic MDT task sequence.  I might as well start simple and make sure the fundamentals work before I go all in. (Our build task sequence is pretty complicated.)  A few things I had to do special to make it work…..

  1. I needed to replace the DISM tool so that I’ll be able to inject drivers (thanks go to Johan for that one)
  2. I needed to add the .NET 3.5 feature (tip my hat to Niall)
  3. I had to fix a lot of logic within the sequence to remove reliance upon OS versions

Replacing DISM…
I deviated from Johan’s instructions slightly.  He added the updated Windows 10 DISM to the MDT Files package.  I don’t want to dink with our production MDT package and I don’t want to muddy things up with a second “Windows 10” MDT package either.  I also felt that I’ll have to replace DISM again later on at least when Windows 10 goes RTM if not sooner with upcoming preview releases.  With that in mind I decided to create a dedicated package for the Windows 10 DISM.

First, you need to get the updated DISM files….

  1. Start by mounting the boot.wim from either the 32bit or 64bit (depending on what architecture your environment uses, I hedged my bets and did both)
  2. You will find DISM in the Windows\System32 folder
  3. I’m using a dedicated pacakge, so I created the package source folder and inside I created subfolders for x86 and x64:
  4. Next, copy the DISM folder and the DISM.exe from the mounted Windows 10 boot image to the corresponding folder in the package source
  5. Repeat with the 64bit boot image
  6. Now create a basic package in SCCM using the root folder as its source (in my case Win10-DISM_9879) and push it out to your distribution points

Task Sequence Modifications…
Now that I had the updated DISM binaries in a package, the next thing I had to do was to get them into WinPE so that they would be available.  I wasn’t going to inject these into my boot image, so instead I used a couple of actions in the WinPE portion of my task sequence to copy the files to the RAM drive.  To keep it simple I added them imimmediatelyrior to applying the Windows 10 image.

  1. In the task sequence I created a group and a pair of “Run Command Line” actions for this.
  2. * * * Copy WTP dism.exe
    1. This action will copy the proper DISM.exe based on the architecture (x86 vs. x64) to the WinPE RAM drive
    2. Command Line:
      cmd /c copy .\%architecture%\dism.exe x:\windows\system32\ /y
  3. * * * Copy WTP DISM subsystem
    1. This action will copy the required DISM binaries to the WinPE RAM drive
    2. Command Line:
      cmd /c copy .\%architecture%\dism\*  x:\windows\system32\dism /y

Now after applying the image DISM will be able to inject drivers and perform other offline servicing correctly.

Next up, getting the .NET 3.5 feature added….

Posted on December 17, 2014, in Windows 10 and tagged , , , . Bookmark the permalink. 2 Comments.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: