Danny Moran

How to deploy Windows 11 22H2 with Microsoft Deployment Toolkit (MDT) and Windows Deployment Services (WDS)

Published October 01, 2022 by Danny Moran

Table of Contents
PAGE CONTENT

Introduction

Microsoft Deployment Toolkit (MDT) is a collection of tools that can be used to easily automate the deployment process for installing Windows Desktop and Windows Server operating systems.

How to deploy Windows 11 with Microsoft Deployment Toolkit (MDT) and Windows Deployment Services (WDS) Guide Video

Downloads

Required Downloads

Other Downloads

If you need to download Windows 11, you can use these two links.

Installing Windows Deployment Services

  1. Run PowerShell as an Administrator

  2. Run the following command:

    Install-WindowsFeature WDS
    
  3. Open Server Manager, press Tools, then press Windows Deployment Services.

  4. In the WDS panel, expand the Servers drop down in the left hand column.

  5. Right-click your local server in the servers drop down and press configure server.

  6. Before you begin, check your your environment meets the requirements, and if it does, press Next.

  7. Select if you are integrating your WDS server with Active Directory, or if you are setting up a standalone server and press Next. (For this guide, we are integrating with Active Directory.)

  8. Enter the location where you want to store your WDS files. By default, it stores it in C:\RemoteInstall. For best performance, you should change the path to a secondary drive, however using the default location works fine. Press Next once you have entered the path location. If you leave it on the C drive, then you will get a warning, however, you can just press Yes to continue.

  9. For the PXE settings, set it to Respond to all client computer (known and unknown) and then press Next.

  10. Untick Add images to the server now, as we will add the boot image at a later stage, and press Finish.

Installing Microsoft Deployment Toolkit

  1. Run MicrosoftDeploymentToolkit_x64.msi

  2. On the welcome screen of the setup wizard, press Next.

  3. Accept the license agreement by ticking the box and then pressing Next.

  4. On the custom setup page, leave all these are default. Microsoft Deployment Toolkit, and both subfeatures (Documents, and Tools and Templates) should be selected. Then press Next.

  5. Select if you want to join the customer experience improvement program and then press Next.

  6. On the last page, press Install to install Microsoft Deployment Toolkit.

  7. After the install has finished, press Finish.

Installing the Windows ADK

  1. Run adksetup.exe

  2. Select where you want to install the ADK to and then press Next. By default, it installs to C:\Program Files x86\Windows Kits\10\ which is fine.

  3. Select if you want to allow Microsoft to collect insights for the Windows Kits, and then press Next.

  4. Accept the licence agreement by pressing Accept.

  5. Select the features you want to install and then press Install. I leave the selected options as default as they can be easily changed at a later date if more are required.

  6. After the install has finished, press Close.

Installing the Windows PE add-on

  1. Run adkwinpesetup.exe

  2. For the install location, it is auto selected based on where you installed the Windows ADK. Just press Next.

  3. Select if you want to send anonymous usage data to Microsoft for the Windows Kits, and then press Next.

  4. Accept the licence agreement by pressing Accept.

  5. The only option, Windows Preinstallation Environment (Windows PE), should be ticked, and then press Install.

  6. After the install has finished, press Close.

Creating a Deployment Share in Microsoft Deployment Workbench

  1. Open Deployment Workbench

  2. Right-click Deployment Shares, and then press New Deployment Share.

  3. Set a path for where you want to store your deployment share and press Next. The deployment share can end up being 100’s of GB in size. Pick a drive that has a lot of fast storage.

  4. Set a Deployment Share name and then press Next. Make sure you leave the $ at the end of the share name.

  5. Set a Deployment Share description and then press Next.

  6. Leave the options as default as these will be amended later.

  7. Check the summary is correct and then press Next to create the deployment share.

  8. Once the deployment share has finished being created, press Finish.

Adding an Operating System to the Deployment Share

  1. Copy the installation ISO file for the operating system you want to deploy to your deployment server.

  2. Right-click the ISO file and press Mount.

  3. In the Deployment Workbench, right-click the Operating Systems folder and press New Folder.

  4. Name the folder Windows the same name as the operating system you are importing and press Next, Next, and then Finish.

  5. Right-click the new folder you just created and then press Import Operating System.

  6. Select Full set of source files, and then press Next.

  7. Select Browse…, and then select the mounted drive, and then press OK and then Next.

    If you get an error at this stage, it is likely that the ISO file that you are using doesn’t have an install.wim file, but an install.esd file. You will copy the install.esd file from within the sources folder of the mounted drive to the desktop and then use the below guide to extract the install.wim file out of it. Then repeat Step 7 but select the folder that has your extracted install.wim file.

    Guide on extracting WIM files from ESD files

  8. Enter a destination directory name and then press Next. The name should be automatically picked up.

  9. Check the summary is correct and then press Next to import the operating system.

  10. Once the operating system has finished importing, press Finish to close the wizard.

Creating a Task Sequence in Microsoft Deployment Toolkit

  1. Right-click the Task Sequences folder with MDT and press New Task Sequence.

  2. Give your Task Sequence a unique ID and descriptive name, and then pres Next.

  3. Select Standard Client Task Sequence and then press Next.

  4. Select the operating system you want to deploy and press Next.

  5. Select do not specify a product key at this time, and then press Next.

  6. Fill in the Full Name, Organisation, and IE Home Page, and then press Next.

  7. Set a local administrator password that can be used once the operating system has been deployed, and then press Next.

  8. On the summary page, check the settings and then press Next to create the task sequence.

  9. Press Finish to close the task sequence wizard.

Deployment Share Properties

  1. Right-click your deployment share and press Properties.

  2. Under General, untick x86 for the supported platforms.

  3. Under Rules, enter the below settings into the Rules box.

    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    
    [Default]
    OSInstall=Y
    SkipBDDWelcome=YES
    SkipCapture=YES
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerBackup=YES
    SkipBitLocker=YES
    SkipUserData=YES
    SkipTimeZone=YES
    SkipLocaleSelection=YES
    
    JoinDomain=ad.dannymoran.com
    MachineObjectOU=OU=Workstations,OU=Company,DC=ad,DC=dannymoran,DC=com
    
    KeyboardLocale=en-GB
    TimeZoneName=GMT Standard Time
    EventService=http://DEPLOYMENT01:9800
    
  4. Press Edit Bootstrap.ini and enter the below settings.

    [Settings]
    Priority=Default
    
    [Default]
    DeployRoot=\\DEPLOYMENT01\DeploymentShare$
    
    UserID=Administrator
    UserDomain=ad.dannymoran.com
    UserPassword=Password01
    
    KeyboardLocalePE=0809:00000809
    
    SkipBDDWelcome=YES
    
  5. Under Windows PE, change the platform to x64, and then untick Generate a Lite Touch bootable ISO image.

  6. Under Monitoring, tick Enable monitoring for this deployment share.

  7. Press Apply and then OK.

  8. Right-click your deployment share and press Update deployment share.

  9. Select Completely regenrate boot images, and then press Next, and then Next to generate the boot images.

Importing Microsoft Deployment Toolkit boot image into Windows Deployment Services

  1. Open Windows Deployment Services

  2. Right-click Boot Images and press Add Boot Image…

  3. Select your MDT boot image. It should be located: C:\DeploymentShare\Boot\LiteTouchPE_x64.wim

  4. Press Next, Next, Next, and then wait for the image to be imported and then press Finish.

You should now be able to network boot from devices on your local network and boot into MDT.

Once in the MDT PXE boot environment, follow the onscreen wizard to deploy the operating system.