Microsoft Deployment Toolkit (MDT) Configuration – Windows Installation Automation

bardimin pic


July 20, 2022
mdt rule all

Microsoft Deployment Toolkit (MDT) Configuration – Windows Installation Automation

Home » Blogs » Windows » Microsoft Deployment Toolkit (MDT) Configuration – Windows Installation Automation

The (MDT) is a tool that allows you to perform windows installations automatically.

By using MDT and automating the installation of Windows, it will make it easier for you to distribute Windows in an organization.

MDT supports deployments of Windows1 1, , Windows 7, Windows 8.1, and Windows Server.

In this article, Bardimin will provide an MDT configuration guide that allows you to perform an automatic installation of Windows.

Installing the Microsoft Deployment Toolkit (MDT)

For installation, download the following file:

  1. Microsoft Deployment Toolkit (MDT)
  2. Windows ADK for , version 22H2
  3. Windows PE add-on for Windows ADK for , version 22H2

Download all those files and install them all. When this article was created, there were still compatibility issues between MDT version 8456 and Windows ADK 22H2. If you find any such compatibility issues, use the previous version of the ADK at the following link.

  1. Windows 11 ADK
  2. Windows PE add-on for ADK Windows 11

Setting Up a Windows Image

Before you configure, you must have a Windows image file. MDT requires an image file in WIM format (. wim). You can get this file from an ISO file, DVD, CD, or download it on Microsoft.

If what you have is an ISO file, then extract or “Mount” the file. The Windows file we need is the “install.wim” file that is in the directory


If what you find is an “install.esd” file, then you have to do the conversion first.

Converting “esd” files to “wim”

  1. Mount or Extract ISO files
  2. Then open CMD and run it as administrator.
  3. Type the following command
DISM /Get-WimInfo /WimFile:YourSource\install.esd

YourSource = Directory the esd file you are converting, for example

DISM /Get-WimInfo /WimFile:F:\sources\install.esd
getinfo esd

Note the index number of the Windows that you will extract.  In one file “install.esd” can contain many versions of Windows.

  1. Extract the Windows file from the “install.esd” file.

On CMD, type the command

DISM /Export-Image /SourceImageFile:YourSource\install.esd /SourceIndex:YourIndex /DestinationImageFile:YourDestination\install.wim /Compress:Max /CheckIntegrity

YourSource = the esd file directory  that you will convert

YourIndex = the Windows index number you will extract (see step 3)

YourDestination = directory to store the conversion results


DISM /Export-Image /SourceImageFile:F:\sources\install.esd /SourceIndex:1 /DestinationImageFile:C:\Win11Convert\install.wim /Compress:Max /CheckIntegrity
eksport esd

MDT configuration

Once you have the Windows image file in WIM format, the next step is to create a new Deployment Share and configure it from the (MDT).

Create a new Deployment Share

  1. Open “Deployment Workbench“.
  2. Then on the left part of the window, right-click “Deployment Share” and select “New Deployment Share“.
mdt new deploy share
  1. In the “New Deployment Share Wizard” window, specify the “Path” of the Deployment Share. The default value is “C:\ DeploymentShare”, change it to the directory you want or leave it alone. Then click the “Next” button.
  2. In the “Share” option, you can also change the name of the sharing directory or leave it the default. Click “Next” to continue.
  3. In the next option, you can also change the value according to what you want. Click “Next” and “Next” again until the New Deployment Share Wizard process is complete.

Microsoft Deployment Toolkit (MDT) configuration

  1. Open the “Deployment Workbench” and navigate to the “Deployment Share” you created earlier.
  2. Select “Operating System“, then right-click and select “Import Operating System“. In the Import Operating System Wizard window, select “Custom image file“. Next import the “install.wim” file that you created earlier.
mdt os
  1. In the “Applications” option, you can add applications that will be installed automatically. You can add applications such as Office, , Reader, etc. Then you also have to add the “Silent Install” script of the .
mdt app
  1. Next in “Task Sequences“, in this section, is the sequence of tasks used to implement your production Windows Image reference.

Rule Automation

In the Microsoft Deployment Toolkit (MDT) you can set the Rules that will be used in the installation process. By creating the right Rules, you will be able to automate all the processes.

mdt rule

To create a Rule, right-click on the “Deployment Share” you created and select “Properties“. Then select the “Rule” tab and click the “Apply” button to apply it. One of the following examples of Rules created by Sam Schoeller you can use.

MDT customsettings.ini for one touch image deployment
by Sam Schoeller <>



'sets the default install type

'skips the capture wizard pane. 

'skips setting local admin pass, product key and deployment type wizard panes

'skips the domain join pane, and sets OU and account details to autojoin to the xxx computer OU. Uses limited domain join only delegated account

'skips collect user data pane as this is for clean installs

'auto selects task xxx, the golden image in the xxx server. set to NO or comment out to bring this pane up to select a different task

'enables a default value with location and PC serial for xxx, but also enables computer name pane for user input

'skips the package display pane

'Sets the language and keyboard panes

'sets the timezone to pacific.
TimeZoneName=Pacific Standard Time

'sets our homepage. It was defined in task, but this is a better, global place to define it, as it does change occasionally.

'skips the application wizard. May want to enable
'skips apps on upgrade actions. This is redundant, as we are doing new installs, but I left it in to not forget it exists.
'installs default themepack
'installs xxxxxxxxxxxxxxxx
'installs xxxxxxxxxxxxxxxxxxxx
'remove Libaries folder from Desktop

'points at our WSUS server to pull updates

'skips the preamble and post amble summary. Will still display post summary in red if there are errors.

'sets default screen resolution so low, windows is forced to auto adjust to the correct resolution.

'Sets a share location for the logs file

'This is used by the MDT monitoring service for something or other

You can also add the default login user and to “Edit Bootstrap.ini”. By adding this Rule, MDT will no longer ask for the user and and will use these credentials to access them.


mdt rule all
link nyemin

Latest Articles

How to Fix Windows Search Not Working on Windows 11

How to Fix Windows Search Not Working on Windows 11

Windows Search is a feature that lets you quickly and easily search for files, folders, apps, settings, and web content in Windows 11. However, sometimes this feature encounters issues and cannot function properly. This is certainly very disruptive to your...

How to Sync Files between Different Computers Easily and Quickly

How to Sync Files between Different Computers Easily and Quickly

Have you ever had trouble syncing files between different computers? Do you want to have the same file on all your computers without having to copy and paste it manually? Do you want to know how to synchronize files between different computers easily and quickly? If...

How to Display Caps Lock Indicator on Windows 11 Screen

How to Display Caps Lock Indicator on Windows 11 Screen

Do you often type in uppercase letters accidentally because you don't realize that the Caps Lock key is active? Do you have trouble seeing the Caps Lock indicator on your keyboard because it's too small or not there at all? Do you want to get visual or audible...

How to Find Out a New or Used Hard Drive Easily and Accurately

How to Find Out a New or Used Hard Drive Easily and Accurately

A hard drive is one of the important components of a computer because it functions as a data storage medium. However, not all hard drives sold in the market are new hard drives. There are also used hard drives that are sold at a cheaper price but have a higher risk of...