Deploy Windows Captured Image Using SCCM and MDT

Let’s understand how to Deploy Windows Captured Image Using SCCM and MDT. This post will help you manage the deployment of Windows Captured Image & Deploy Windows Image using MDT + SCCM.

Let’s learn How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT), and the same Image can be used in SCCM or MECM.

In my previous post, I described the working mechanism of the Sysprep tool and the process of capturing the Windows Image. Learn How to Sysprep Capture Windows 10 Image using DISM.

Since we had successfully captured the windows image, the next step would be to deploy the captured image.

Patch My PC

Introduction – Deploy Windows 10 Image

We have many options to manage and proceed with the deployment. We will choose the Microsoft Deployment Toolkit (A.K.A MDT) to deploy the captured WIM File.

Microsoft Deployment Tool (MDT) will allow you to create Zero Touch Installation to deliver an automated deployment scenario.

  • Requires no interaction by the user.
  • Users do not need to know any configuration information before initiating the deployment process.
  • You can customize your task sequence much easier.
  • It can preconfigure the user profile and apply user-based settings and customizations.
  • With CopyProfile, you can make changes to default user settings and apply them to the user profile on system during deployment.

Prerequisites

  • Microsoft Deployment Toolkit (MDT) 8456 Download
  • Windows ADK 10 v1903 Download
  • WinPE Addon for Windows ADK 10 v1903 Download
  • Windows 10 Image
  • Configure MDT Deployment Share to Create Reference Image

Implementation Activities & Tasks

Deploy Windows 10 Image Deploy Windows Captured Image Using SCCM and MDT
Overview – Implementation Activities & Tasks – Deploy Windows Captured Image Using SCCM and MDT

Import Custom Image for Deployment

  • Expand the Deployment Shares and the MDT Deployment Share.
  • Create a folder structure inside the Operating Systems. This helps in the organization of selection profiles. Right Click in Operating Systems > Created Folder and select Import Operating System
Deploy Windows Captured Image Using SCCM and MDT
Importing Operating System Under Custom Directory – Deploy Windows Captured Image Using SCCM and MDT

Select the Custom Image file to add a captured image you wish to deploy.

Deploy Windows Captured Image Using SCCM and MDT 1
Selected Custom Image File to import the captured Image (.WIM) – Deploy Windows 10 Image

Click on Browse; specify the location of the wim file. After Specify the full path, you can check the box to move the files to the deployment share and click Next. To save your time!

Adaptiva

Don’t forget to keep a copy of imported Images.

Deploy Windows 10 Image using MDT Deploy Windows Captured Image Using SCCM and MDT
Deploy Windows 10 Image using MDT Deploy Windows Captured Image Using SCCM and MDT

Select Setup files that are not needed and Click Next.

Setup - Deploy Windows 10 Image using MDT
Setup – Deploy Windows 10 Image using MDT – Deploy Windows Captured Image Using SCCM and MDT

Accept this default directory name or specify the directory’s name and click Next.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) – Deploy Windows Captured Image Using SCCM and MDT

Review the values and click Next.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) – Deploy Windows Captured Image Using SCCM and MDT

You will get a message “The Import Operating System Wizard completed successfully” Click Finish.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
Deploy Windows Captured Image Using SCCM and MDT

The captured image of the reference computer is added under Operating Systems.

The Operating System Image added to the Deployment Workbench
The Operating System Image added to the Deployment Workbench – Deploy Windows Captured Image Using SCCM and MDT.

Prepare the drivers repository.

You need to download all device drivers for required models available on the OEM Manufacturer’s website. Once you have downloaded the necessary drivers, store them for a specific model in a folder.

Deploy Windows Captured Image Using SCCM and MDT 2
The Out-of-Box Drivers structure in Deployment Workbench

Download Extract and Import Drivers within your folder into MDT

Next, we want to create a folder structure under the Out-of-Box Drivers node in MDT to organize our drivers. This will not only allow easy manageability of drivers.

To add drivers for the operating system of different hardware models, Check this Microsoft Blog.

Create and Configure the MDT Task Sequence

Right-click on the Task Sequence node and select “New Task Sequence.”

MDT Task Sequence - Deploy Windows 10 Image Deploy Windows Captured Image Using SCCM and MDT
MDT Task Sequence – Deploy Windows 10 Image – Deploy Windows Captured Image Using SCCM and MDT

Provide the Task sequence ID and Task sequence name.

MDT Task Sequence General Settings - Deploy Windows 10 Image
MDT Task Sequence General Settings – Deploy Windows Captured Image Using SCCM and MDT

Select Template Standard Client Task Sequence from the available list.

Standard Client Task Sequence Deploy Windows Captured Image Using SCCM and MDT
Standard Client Task Sequence – Deploy Windows Captured Image Using SCCM and MDT

Select OS: choose the imported Custom Image to deploy with this Task Sequence.

Select OS How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
Select OS How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Select Do not specify a product key at this time.

MDT Specify Product Key Deploy Windows Captured Image Using SCCM and MDT
MDT Specify Product Key Deploy Windows Captured Image Using SCCM and MDT

Fill the fields Full Name, Organization, Internet Explorer Home Page (these fields can be modified through Answers File at a later stage), and click Next.

MDT OS Settings Deploy Windows Captured Image Using SCCM and MDT
OS Settings Deploy Windows Captured Image Using SCCM and MDT

Select Don’t specify an Administrator password at this time Option. Click Next.

MDT Setting Admin Password Deploy Windows Captured Image Using SCCM and MDT
MDT Setting Admin Password – Deploy Windows Captured Image Using SCCM and MDT

Review the details and click Next.

Deploy Windows 10 Image Deploy Windows Captured Image Using SCCM and MDT
Summary Deploy Windows 10 Image Deploy Windows Captured Image Using SCCM and MDT

Task Sequence creation process completed successfully. Click Finish to close the wizard.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
Deploy Windows Captured Image Using SCCM and MDT

We have a pretty bare-bones task sequence that will only install Windows and nothing else.

We need to edit Task Sequences and add custom steps to perform other actions required with this Windows installation into a target machine.

Default Task Sequences has successfully added
Default Task Sequences have successfully been added – Deploy Windows Captured Image Using SCCM and MDT.

Customize the Task Sequence

Edit the task sequence by navigating to the Task Sequences, right-click on created task sequence Name, and selecting Properties.

MDT Task Sequence Customize
MDT Task Sequence – Deploy Windows Captured Image Using SCCM and MDT
Deploy Windows Captured Image Using SCCM and MDT 3
Configure any action with settings after State Restore – Custom Tasks (Pre-Windows Update) section

Under the Preinstall section, we will configure the Inject Drivers step to use the selection profile > Nothing in the task sequence.

Deploy Windows Captured Image Using SCCM and MDT 4
Configure the deployment task sequence not to choose the drivers to inject into Windows

We will add a custom Task Sequence Variable step above the Inject Drivers step to set our DriverGroup001 variable to point to the model’s path that we are installing the %model% variable filled.

Deploy Windows Captured Image Using SCCM and MDT 5
Adding Task Sequence Variable step in the task sequence

Task Sequence will appear as shown below; apply changes click on Apply and OK.

Deploy Windows Captured Image Using SCCM and MDT 6
Task Sequence Variable configured for the reference image

Answer files (unattend.xml)

Right-click on the task sequence you created and choose “Properties.” On the “OS Info” tab, click on “Edit Unattend.xml,” which will be Windows System Image Manager.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
Unattend – Deploy Windows 10 Image How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

It started to generate a catalog file automatically for the selected WIM. This process could take a while, depending on your configuration. 

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Once the generation is complete, you’re free to change your Unattend.xml. 

For all unattended settings that can be applied with the answer file. Complete description about components; see this Microsoft Docs Unattend Components.

Deploy Windows Captured Image Using SCCM and MDT 7

Run the Validation check, click on the Tools menu and select Validate Answer File.

Deploy Windows Captured Image Using SCCM and MDT 8

In the Messages area at the bottom of the screen, you should see that your validation answer file has errors. Double click on any results to be taken a right to that setting to remediate any issues.

Make the necessary changes, validate the answer file, and save and exit. 

Deploy Windows 10 Image
Deploy Windows 10 Image

Create a Selection Profile

Selection profiles, available in the Advanced Configuration node, provide a way to filter content in the Deployment Workbench.

Selection profiles are used for several purposes in the Deployment Workbench and Lite Touch deployments. For example, they can be used to: 

  • Control which drivers and packages are injected into the boot images. 
  • Control which drivers are injected during the task sequence. 
  • Control what is included in any media that you create. 
  • Control what is replicated to other deployment shares. 
  • Filter which task sequences and applications are displayed in the Deployment Wizard.  

Expand Advanced Configuration. Right Click on Selection Profiles and select New Selection Profile.

Deploy Windows Captured Image Using SCCM and MDT 9
Deploy Windows 10 Image How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Provide the Selection profile name and Comments for best practice.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Here we can select the available applications, Operating Systems, Drivers, Packages, and Task Sequences that we need to include in the Image.

Note: Selecting more than necessary will result in larger ISO files and USB storage requirements.

Once done with the selection, click on Next.

Deploy Windows Captured Image Using SCCM and MDT 10
Creating Selection list

Here we will get a summary page with detailed information.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Click on the Finish button to complete the process.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

A custom Selection Profile has been created based on your selection.

Deploy Windows Captured Image Using SCCM and MDT 11
The selection profile created for production deployment

Note: If you need to make any changes later, you can modify the selection profiles by right-clicking> properties in the completed profile.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Creating an Offline MDT Deployment Media

Right Click on Media and select New Media.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Under New Media Wizard, provide the Media path by clicking on the Browse option. We have created a new directory under C drive named “MDT Offline Media.”

Note: The path of the provided directory should be empty.

Now select the selected profile from the drop-down list which was created earlier.

Deploy Windows Captured Image Using SCCM and MDT 12
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Review the selected values and Click on Next.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Please wait for a while to complete the process. Once you get a message, “The Process completed successfully,” Click on Finish.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) Deploy Windows 10 Image

Under Media, Now you can see new media has been created.

Deploy Windows Captured Image Using SCCM and MDT 13
Deploy Windows 10 Image How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Right-click in media [here in my case, MEDIA001] and choose Properties.

Deploy Windows Captured Image Using SCCM and MDT 14
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Select the Platforms Supported; provide the appropriate name for ISO.

Deploy Windows Captured Image Using SCCM and MDT 15
Deploy Windows 10 Image How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Configure MDT Deployment Share Rules

You modify the two rules files (Bootstrap.ini and CustomSettings.ini) to automate media Installations. The rules control the Windows Deployment Wizard on the client and provide the following settings to the machine being deployed:

  • Computer name
  • Domain to join, and organizational unit (OU) in AD to hold the computer object.
  • Whether to enable BitLocker
  • Regional settings You can manage hundreds of locations in the rules.

Click on the Rules tab, where you will get default settings.

Deploy Windows Captured Image Using SCCM and MDT 16
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Important! Generate a computer name based on a serial number
A serial number can contain 15 characters, but the Windows setup limits a computer name to 15 characters. More Details Configure MDT deployment share rules

Below the configurations I used, you can modify the Rules in the deployment process based on Toolkit Reference.

CustomSettings.ini

Select the Rules tab and modify the properties window using the sample information.

[Settings]
Priority=Default
[Default]
_SMSTSORGNAME=Test Infra
OSInstall=YES
OSDComputerName=PC-%SerialNumber%
SkipApplications=YES
SkipAppsOnUpgrade=YES
SkipBitLocker=YES
SkipCapture=YES
SkipComputerName=YES
SkipComputerBackup=YES
SkipDeploymentType=YES
DeploymentType=NEWCOMPUTER
SkipDomainMembership=YES
SkipAdminPassword=YES
AdminPassword=P@ssWord
SkipLocaleSelection=YES
KeyboardLocale=en-US
UserLocale=en-US
UILanguage=en-US
SkipPackageDisplay=YES
SkipProductKey=YES
SkipSummary=YES
TimeZoneName=UTC
SkipTimeZone=YES
SkipUserData=Yes
SkipTaskSequence=YES
TaskSequenceID=W10X64
_SMSTSOrgName=Test Infra
SkipFinalSummary=NO

Bootstrap.ini

Click Edit Bootstrap.ini will open the configuration in Notepad and modify it using the following information.

[Settings]
Priority=Default
[Default]
SkipBDDWelcome=YES

Click on Apply to save the changes and Click on OK to close the Media Properties.

WinPE Drivers

You can create separate folders under your Out-of-Box Drivers node for WinPE_x86 and WinPE_x64 drivers and add the drivers. In the Windows PE tab, in the Platform drop-down list, make sure x64 is selected. Select the Drivers and Patches tab.

By default, MDT will inject all network adapters and mass storage drivers into the WIM file. From the Selection profile drop-down list, choose the selection profile that you created
for WinPEx64.

Deploy Windows Captured Image Using SCCM and MDT 17
The Windows PE tab for the boot image – Deploy Windows 10 Image.

Why need to Update Deployment Share

Generally, you need to update the deployment share when you make changes that affect the boot image. That would include:

  • Added a driver that needs to be injected in WinPE.
  • Modified the boot image settings.
  • Changes to the Bootstrap.ini file.
  • Updated any of the scripts or files.

Update the deployment share by right-clicking the MDT Build Lab deployment share and selecting Update Deployment Share. Use the default options for the Update Deployment Share Wizard.

It will only inject drivers into WindowsPE from the specified folder in your selected profile.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)
Updating Deployment Share

Split a Windows Image File (.wim) 

We need to configure or validate this setting once before deployment with an image having more than 4GB as FAT32 is required to boot the UEFI System with a maximum supported file size of 4GB. 

After splitting the Image into a set of smaller (.swm) files, it can handle images having more than the size of 4GB when installing windows images from USB or DVD.

In the Deployment share > Control > Settings.xml. Open with Notepad to modify.

Deploy Windows Captured Image Using SCCM and MDT 18
Deploy Windows 10 Image How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT)

Make Sure that the Settings.xml File has the following settings: Save and close the Notepad.

<SkipWimSplit>False</ SkipWimSplit> 
Deploy Windows Captured Image Using SCCM and MDT 19

Important Tips! Before updating media content, it’s better to close all the opened instances of Deployment Share, a path used by some other process. If needed, sign out from the logged-in User Account, log in to Server, and Open Deployment Share> Advanced Configuration> Media> Update Media Content.

Right Click on Media and select Update Media Content.

Deploy Windows Captured Image Using SCCM and MDT 20
Updating Media Content

Now the ISO Image creation will be in progress, and it will take a longer time to complete the process.

Deploy Windows Captured Image Using SCCM and MDT 21
Update Media Content Wizard showing the media progress

Once Media generation is completed successfully, Click on Finish to close the wizard.

Deploy Windows Captured Image Using SCCM and MDT 22
Prompt showing media creation process completed successfully

Media has been created successfully; you can see the ISO files to use for deployment have been made under the path you specified.

Create a bootable USB from the ISO for offline deployment, depending on your target devices.

Author

10 thoughts on “Deploy Windows Captured Image Using SCCM and MDT”

  1. Hi Jitesh,

    Thanks for putting your efforts making such a detailed deployment knowledge article on Windows 10. It was really helpful to me.

    I have got a few Questions on setting up Computer name during OSD?

    1.What’s is best way to configure PC Name?

    2. How to configure TS so That it can Name the Device based on whether it’s Laptop,Desktop or a Tablet?

    I Look forward to hearing from you soon.

    Regards,
    Vishal

    Reply
    • Thanks Vishal..

      You can configure variable IsDesktop , IsLaptop and IsTablet to distinguish devices inside the Customsettings.ini rules. Based on your environment requirements you can customize the rules.
      Here’s the sample Rules –

      [Settings]
      Priority=ByLaptop, ByDesktop, Default
      Properties=ComputerType,MyCustomProperty

      [ByLaptop]
      SubSection=Laptop-%IsLaptop%
      ComputerType=L

      [By Desktop]
      SubSection=Desktop-%IsDesktop%
      ComputerType=D

      [By Tablet]
      SubSection=Desktop-%IsTablet%
      ComputerType=T

      OSDComputerName=%ComputerName%-%SerialNumber%

      As these variables are handled by ZTIGather.wsf where there’s no pre defined variable for Tablet, You can prefer the solutions prescribed by Keith.

      Add a step Set Task Sequence Variable – IsTablet = True in Task Sequence.

      In the Options tab, add WMI Query with the following-

      SELECT * FROM Win32_ComputerSystem WHERE PCSystemType = 2 and PCSystemTypeEx = 8

      Reply
  2. February 21, 2022

    https://www.anoopcnair.com/sysprep-capture-windows-10-image-using-dism/
    Learn How to Sysprep Capture Windows 10 Image using DISM
    https://www.anoopcnair.com/deploy-windows-captured-image-using-sccm-mdt/
    Deploy Windows Captured Image Using SCCM and MDT

    Hello,
    I wonder if there is an easier way to use “sysprep” and its deployment.
    What I would like is to use a simple PC with Windows 10 Pro on “one” (system partition and installation partition) and an external hard drive.

    And to use “sysprep” and “DISM” only. I understand that IT works on servers and virtual machines but this is not my case. Finally, I just use “VirtualBox” and I am not an expert. And regarding the servers my level is that of a chimpanzee.

    If you have the time and a suggestion for me, simple, I would like to know it.
    Thanks for sharing your knowledge.

    Reply
  3. Dear Anoop,

    I am looking for some help here in regards to my SCCM. In one my company we was using one form before going for actual OSD deployments. In this form we was able to define host name, User name of machine, domain and etc….How we can do that? It was simple web based form….and machine added for OSD was visible into the list of machines you want to image. Any help would be really appriciated.

    Many Thanks!

    Mukesh Kharade

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.