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

5
Architecture

This post will help you to 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,described about the working mechanism of Sysprep tool and process of capturing the Windows Image Learn How to Sysprep Capture Windows 10 Image using DISM. Since we had successfully captured windows image,the next step would be deploy the captured image.

Introduction – Deploy Windows 10 Image

We have many options to manage and proceed the deployment.Here 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 prior to initiating the deployment process.
  • You can customize your task sequence much easier.
  • It can preconfigure the user profile as well apply users based settings and customizations.
  • With CopyProfile you can make changes to default user settings and apply 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
Overview – Implementation Activities & Tasks – Deploy Windows 10 Image
Altaro Office 365 Backup
Advertisement Altaro Office 365 Backup

Import Custom Image for Deployment

  • Expand the Deployment Shares and the MDT Deployment Share.
  • Create a folder structure inside the Operating Systems, This helps to organization of selection profiles. Right Click in Operating Systems > Created Folder and select Import Operating System
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 1
Importing Operating System Under Custom Directory

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

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 2
Selected Custom Image File to import captured image (.WIM) – Deploy Windows 10 Image

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

Don’t forget to keep copy of imorted Image.

Deploy Windows 10 Image using MDT
Deploy Windows 10 Image using MDT

Select Setup files are not needed and Click Next.

Setup - Deploy Windows 10 Image using MDT
Setup – Deploy Windows 10 Image using MDT

Accept this default directory name or specify the name of the directory and Click Next.

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

Review the values and Click Next.

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

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) 5

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

Prepare the drivers repository

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

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 6
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
MDT Task Sequence – Deploy Windows 10 Image

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 10 Image

Select Template Standard Client Task Sequence from available list.

Standard Client Task Sequence
Standard Client Task Sequence

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

Select OS
Select OS

Select Do not specify a product key at this time.

MDT Specify Product Key
MDT Specify Product Key

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

MDT OS Settings
OS Settings

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

MDT Setting Admin Password
MDT Setting Admin Password

Review the details and Click Next.

Deploy Windows 10 Image
Summary Deploy Windows 10 Image

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

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

What we have now is a pretty bare-bones task sequence which will only install Windows and nothing else. We need to edit Task Sequences add custom steps to perform others needed action with this Windows installation into a target machine.

Default Task Sequences has successfully added
Default Task Sequences has successfully added

Customize the Task Sequence

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

MDT Task Sequence Customize
MDT Task Sequence
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 8
Configure any action with settings after State Restore – Custom Tasks (Pre-Windows Update) section

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

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 9
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 path of the model that we are installing the %model% variable filled.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 10
Adding Task Sequence Variable step in the task sequence

Task Sequence will be appear as shown below,Apply changes click on Apply and OK.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 11
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 Windows System Image Manager.

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

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) 13

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

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

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

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

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

Now, 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 right to that setting to remediate any issues. Make the necessary changes, validate the answer file, save and exit. 

Deploy Windows 10 Image
Deploy Windows 10 Image

Create a Selection Profile

Selection profiles, which are 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 in 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.

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

Provide the Selection profile name and Comments for best practice.

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

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

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

Once done with selection, Click on Next.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 18
Creating Selection list

Here we will get a summary page with detailed informations.

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

Click on Finish button to complete the process.

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

A custom Selection Profiles has created based on your selection.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 21
The selection profile created for production deployment

Note: If you need to make any changes on later stage, you can modify the selection profiles by right click > properties in created profile.

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

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) 23

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

Note: The path of provided directory should be empty.

Now select the selection profile form the drop-down list which was created earlier.

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

Review the selected values and Click on Next.

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

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

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

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

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

Right click in media [here in mine case it’s MEDIA001] and choose Properties.

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

Select the Platforms Supported, Provide the appropriate name for ISO.

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

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 settings in the rules.

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

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

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

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

CustomSettings.ini

Select the Rules tab and modify 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 configuration in notepad and modify 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 adapter and mass storage drivers in the WIM file. From the Selection profile drop-down list, choose the selection profile that you created
for WinPEx64.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 31
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 any time you make changes that affect the boot image.That would include:

  • Added a driver that need 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 select Update Deployment Share. Use the default Options for the Update Deployment Share wizard.It will only inject drivers into WindowsPE from the folder that you specified in your selection profile

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

Split a Windows Image File (.wim) 

We need to configure or validate this settings once before proceeding deployment with image having more than size of 4GB. As FAT32 is required to boot UEFI System that has maximum supported file size 4GB. After splitting the image into a set of smaller (.swm) files it can handle image having more than size of 4GB when installing windows image from USB or DVD.

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

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

Make Sure that the Settings.xml file has the following setting configured, Save and close the Notepad.

<SkipWimSplit>False</ SkipWimSplit> 
How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 34

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

Right Click on Media and select Update Media Content.

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 35
Updating Media Content

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

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 36
Update Media Content Wizard showing the media progress

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

How To Deploy Windows 10 Image Using Microsoft Deployment Toolkit (MDT) 37
Prompt showing media creation process completed successfully

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

Depending on your target devices, create a bootable USB from the ISO for offline deployment.

Resources

5 COMMENTS

  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

    • 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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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