Danny Moran

How to Sysprep and Capture Windows 11 22H2 using Microsoft Deployment Toolkit (MDT and WDS)

Published October 08, 2022 by Danny Moran

Table of Contents
PAGE CONTENT

Before starting, you need to have a fully working Microsoft Deployment Toolkit and Windows Deployment Services setup.

Introduction

How to Sysprep and Capture Windows 11 using Microsoft Deployment Toolkit (MDT and WDS)

How to Sysprep and Capture Windows 11 using Microsoft Deployment Toolkit (MDT and WDS) video

How to Sysprep and Capture Windows 11 using Microsoft Deployment Toolkit (MDT and WDS)

Before starting, you need to have a fully working Microsoft Deployment Toolkit and Windows Deployment Services setup.

Creating a Capture 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.

Capture Deployment Share Properties

  1. Right-click your new capture 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
    DoCapture=YES
    SkipCapture=NO
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerBackup=NO
    SkipBitLocker=YES
    
  4. No amendments need to be made to the bootstrap.ini

  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.

Adding an Operating System to the Deployment Share

  1. Copy the installation ISO file for the operating system you want to capture and 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 Sysprep and Capture from the dropdown and then press Next.

  4. Select the operating system you want to capture and 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.

Capture your Windows 11 reference image

  1. On the fully setup Windows 11 device you are using as a reference image, navigate to your deployment share using file explorer and run the LiteTouch VBScript Script Fie. The file path should look something like:

    \\DEPLOYMENT01\DeploymentShareCapture$\Scripts\litetouch.vbs
    
  2. Accept the UAC popup by pressing Yes.

  3. When the Windows Deployment Wizard has loaded, select the capture task sequence you want to run, and then press Next.

  4. Select the location you want to store your captured image. I leave this as default.

    \\DEPLOYMENT01\DeploymentShareCapture$\Captures
    
  5. Enter a file name for captured reference image, and then press Next.

  6. Enter credentials that give access to the deployment share and then press Next.

  7. Check the summary details, and if correct, press Begin to start the capture process.

Once you press Begin, don’t touch the reference computer until the capture process has finished. The computer will automatically reboot into the PXE environment during this process.

Importing the captured Windows 11 reference image into Microsoft Deployment Toolkit

  1. Once your capture has finished, you should have a captured wim file in the following location:

    \\DEPLOYMENT01\DeploymentShareCapture$\Captures
    
  2. Open Microsoft Deployment Toolkit, and right-click the Operating Systeps folder within your standard deployment share, and then press Import Operating System.

  3. Select Custom Image File, and then press Next.

  4. Press Browse, and then navigate to your captured wim file, select it, and then press Open, and then press Next.

  5. Select Setup files and not needed, and then press Next.

  6. Give your import a descriptive name, and then press Next.

  7. On the summary page, check the details are correct, and then press Next to import the captured wim file.

  8. Press Finish to close the import wizard.

Creating a task sequence to deploy your captured Windows 11reference image

  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 captured 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.

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 captured operating system.