Building a Windows 11 24H2 Reference Image using Microsoft Deployment Toolkit (MDT)

Here is a step-by-step quick guide on building the perfect Windows 11 24H2 reference image using Microsoft Deployment Toolkit (MDT).

Real World Note: Since Windows Vista, there is no technical requirement to create reference images in order to deploy Windows. After all, the ISO that you download from Microsoft contains WIM images that are in a deployable state. The main reason for creating reference images, meaning images with one or more applications in them, is often just deployment speed, and to some extent network efficiency (WIM images are highly compressed). However, in a world with better and better peer to peer solutions, better networking, better hardware, you can make deployments go quite fast even without a reference image. While more and more organizations are moving to use a thin image, and deploy settings and applications at deployment time instead, if you still need a reference image. Here is how to create one.

November 2024 Update: With the November 2024 release of Windows 11 24H2 the Microsoft Copilot is installed by default, which breaks the Sysprep process. I've added in a workaround for that.

Block Internet Access

Due to how aggressive Windows 11 is regarding updating its native applications, which is known for breaking Sysprep, make sure the virtual machine does not have Internet access during the build and capture process. If using Hyper-V VMs to build and capture reference images, use the Add-VMNetworkAdapterAcl cmdlet to block Internet access.

Software Requirements

MDT can be installed either on a file server, or on your own laptop, but in this guide, I used a file server named MDT01. Deployment of Windows 11 24H2 with MDT works fine on pretty much any Windows ADK version, but since the latest version (ADK 24H2) has PowerShell bugs in WinPE I typically use Windows ADK for Windows 11 22H2 (10.1.22621).

Note: Please don't use May 2022 Windows ADK for Windows 11 22H2 (build 10.1.25398), it's a terrible release…

For this guide you need the following software.

Step-by-Step Guide

The entire process for creating a Windows 11 image using MDT takes about 20 – 30 minutes, fully automated. This guide covers the following seven steps:

  • Step 1 – Install Windows ADK for Windows 11, and MDT 8456
  • Step 2 – Create the MDT Build Lab Deployment Share
  • Step 3 – Import the Windows 11 operating system
  • Step 4 – Add applications
  • Step 5 – Create the MDT Task Sequence
  • Step 6 – Configure the deployment share
  • Step 7 – Create Windows Reference Images

Step 1 – Install Windows ADK for Windows 11, and MDT 8456

In this example I have a virtual machine named MDT01, running Windows Server 2022 LTSC (Windows Server 2016 LTSC, Windows Server 2019 LTSC, or Windows Server 2025 LTSC is fine too). The VM has 2 vCPUs and 4 GB RAM.

1. On MDT01, install Windows ADK for Windows 11, and select the following components:

  • Deployment Tools
  • Imaging and Configuration Designer (ICD)
  • Configuration Designer
  • User State Migration Tool (USMT    
Windows ADK 1Setup

2. Install WinPE Addon for Windows ADK for Windows 11, and select the following component:

Windows Preinstallation Environment (Windows PE)

Installing WinPE Addon for Windows ADK

3.  Install MDT using the default settings.

Installing MDT.

4. Install the MDT 8456 HotFix by extracting MDT_KB4564442.exe and extract it to a folder. In my lab, I extracted it to the E:\Setup\MDT 8456 HotFix folder.

5. Copy the x64 version of the new Microsoft.BDD.Utility.dll from E:\Setup\MDT 8456 HotFix\x64 to C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools\x64. Replace the existing file.

6. To fix a known bug in Windows ADK for Windows 11 22H2 edit the C:\Program Files\Microsoft Deployment Toolkit\Templates\Unattend_PE_x64.xml file and replace its content with this example: Unattend_PE_x64.xml.

7. To make MDT "think" you have an x86 version of WinPE optional components, run the below PowerShell snippet:

# Create empty folder for x86 components (not used, but MDT looks for the folder)
$x86Folder = "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs"
New-Item -Path $x86Folder -ItemType Directory -Force

Step 2 – Create the MDT Build Lab Deployment Share

  1. On MDT01, using the Deployment Workbench (available on the start screen), right-click Deployment Shares and select New Deployment Share. Use the following settings for the New Deployment Share Wizard (my data volume on MDT01 is E:)

a.    Deployment share path: E:\MDTBuildLab
b.    Share name: MDTBuildLab$
c.    Deployment share description: MDT Build Lab
d.    Options: (default)

MDT Build Lab deployment share created

2. Once the deployment share is created you also want to relax the security a bit. MDT locks it down to hard by default. Use the following PowerShell script (named Set-MDTBuildLabPermissions.ps1) to set some better permissions (modify script to fit your environment):

#Requires -RunAsAdministrator

# Configure NTFS Permissions for the MDT Build Lab deployment share
$DeploymentShareNTFS = "E:\MDTBuildLab"
icacls $DeploymentShareNTFS /grant '"VIAMONSTRA\MDT_BA":(OI)(CI)(RX)'
icacls $DeploymentShareNTFS /grant '"Users":(OI)(CI)(RX)'
icacls $DeploymentShareNTFS /grant '"Administrators":(OI)(CI)(F)'
icacls $DeploymentShareNTFS /grant '"SYSTEM":(OI)(CI)(F)'
icacls "$DeploymentShareNTFS\Captures" /grant '"VIAMONSTRA\MDT_BA":(OI)(CI)(M)'

# Configure Sharing Permissions for the MDT Build Lab deployment share
$DeploymentShare = "MDTBuildLab$"
Grant-SmbShareAccess -Name $DeploymentShare -AccountName "EVERYONE" -AccessRight Change -Force
Revoke-SmbShareAccess -Name $DeploymentShare -AccountName "CREATOR OWNER" -Force

Note: In my environment the MDT01 server is joined to a domain, and my service account used for the deployments is VIAMONSTRA\MDT_BA. If using a different domain, or if using a workgroup server for your build and capture modify the Set-MDTBuildLabPermissions.ps1 script to reflect that.

Running the Set-MDTBuildLabPermissions.ps1 script

3. Download the Remove-MicrosoftCopilot.ps1 script and save it in the E:\MDTBuildLab\Scripts folder.

The Remove-MicrosoftCopilot.ps1 downloaded to the deployment share.

Step 3 – Import the Windows 11 operating system

Note: Make sure to always download the latest version of Windows 11 Enterprise 24H2. Microsoft releases new media monthly.

On MDT01, mount the Windows 11 Enterprise x64 24H2.iso media (or whatever you named it). On my server it was mounted to the D: drive.

  1. Using the Deployment Workbench, expand the Deployment Shares node, expand MDT Build Lab, select the Operating Systems node and create a folder
    named Windows 11.
  2. Right-click the Windows 11 node, and select Import Operating System. Use the following settings for the Import Operating System Wizard.
    1. Full set of source files
    2. Source directory: D:
    3. Destination directory name: REFW11X64-24H2
    4. After adding the operating system, in the Windows 11 node, remove the indexes/images you don't need, and rename the remaining operating system to Windows 11 Enterprise x64 24H2

Note: The Windows 10 media comes with many Windows version, in the below example I simply removed all but the Enterprise version, and gave it a better name.

The Windows 11 Enterprise x64 operating system imported to deployment workbench.

Step 4 – Add applications

In this example you add Microsoft 365 Apps for enterprise (formerly named Microsoft Office 365 ProPlus) to MDT. Use the Office Deployment Tool (ODT) to create a package of Microsoft 365 Apps for enterprise before continuing with these steps.

1. On MDT01, download the Office Deployment Toolkit (ODT), and extract it to E:\Setup\ODT.

2. Using an elevated Command prompt, download the installers by running the following command:

setup.exe /download configuration-Office365-x64.xml

Microsoft 365 Apps for enterprise (well, Office) downloaded via setup.exe from ODT.

3. Using the Deployment Workbench, expand Deployment Shares / MDT Build Lab / Applications and create a folder named Microsoft.

4. Right-click the Microsoft folder, and select New Application. Use the following settings for the New Application Wizard:

  • Application with source files
  • Publisher:
  • Application name: Install – Microsoft 365 Apps for enterprise
  • Version:
  • Source Directory: E:\Setup\ODT
  • Specify the name of the directory that should be created: Install – Microsoft 365 Apps for enterprise
  • Command Line: setup.exe /configure configuration-Office365-x64.xml
  • Working directory: (default)
Microsoft 365 Apps for enterprise (Office) added as an application.

Step 5 – Create and Configure the MDT Task Sequence

  1. On MDT01, using the Deployment Workbench, in the MDT Build Lab deployment share, select the Task Sequences node, and create a folder named Windows 11.
  2. Expand the Task Sequences node, right-click on the Windows 11 node, and select New Task Sequence. Use the following settings for the New Task Sequence Wizard:
    1. Task sequence ID: REFW11-X64-001
    2. Task sequence name: Windows 11 Enterprise x64 24H2
    3. Task sequence comments: Reference Build
    4. Template: Standard Client Task Sequence
    5. Select OS: Windows 11 Enterprise x64 24H2
    6. Specify Product Key: Do not specify a product key at this time
    7. Full Name: ViaMonstra
    8. Organization: ViaMonstra
    9. Internet Explorer home page: about:blank
    10. Do not specify an Administrator password at this time
  3. Edit the task sequence by navigating to the Task Sequences / Windows 11 folder, right-click the Windows 11 Enterprise x64 24H2 task sequence, and select Properties.
  4. On the Task Sequence tab, configure the Windows 11 Enterprise x64 24H2 task sequence with the following settings:
    1. In the State Restore / Custom Tasks group, add a new Install Application action with the following settings:
      Name: Install – Microsoft 365 Apps for enterprise
      Install a Single Application: Install – Microsoft 365 Apps for enterprise
    2. In the State Restore / Custom Tasks group, after the Install – Microsoft 365 Apps for enterprise action, add a new Run Command Line action with the following settings:
      Name: Remove Microsoft Copilot Application
      Command Line: Powershell.exe -ExecutionPolicy ByPass -File "%SCRIPTROOT%\Remove-MicrosoftCopilot.ps1"
      Description: Remove the Microsoft Copilot App that was added in the November 2024 media. If not removed, this package will break Sysprep.
    3. Optionally, add in the Suspend action that will pause the task sequence, allowing you to review the task sequence before sysprep and capture. Here is a guide for that: https://www.deploymentresearch.com/using-the-suspend-action-ltisuspend-wsf-in-mdt/

      Note: Adding a Suspend action is useful when developing the reference image, or any time you just want to review the image.
Task Sequence configured for the reference image build and capture.

Step 6 – Configure the deployment share

To configure the deployment settings, you modify the two rules files (Bootstrap.ini and CustomSettings.ini). You can do the either via the MDT Build Lab deployment share properties, or directly in the file system, in the E:MDTBuildLabControl folder. Below you find the configurations I used in this guide.

Bootstrap.ini

[Settings]
Priority=Default

[Default]
DeployRoot=\\MDT01\MDTBuildLab$
UserDomain=VIAMONSTRA
UserID=MDT_BA
UserPassword=P@ssw0rd
SkipBDDWelcome=YES

CustomSettings.ini

[Settings]
Priority=Default

[Default]
_SMSTSORGNAME=ViaMonstra
UserDataLocation=NONE
ComputerBackupLocation=NETWORK
DoCapture=YES
OSInstall=Y
AdminPassword=P@ssw0rd
TimeZoneName=Pacific Standard Time
JoinWorkgroup=WORKGROUP
HideShell=NO
FinishAction=SHUTDOWN
ApplyGPOPack=NO
SkipRearm=YES

BackupShare=\\MDT01\MDTBuildLab$
BackupDir=Captures
BackupFile=%TaskSequenceID%_#month(date) & "-" & day(date) & "-" & year(date)#.wim

SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=YES
  1. On MDT01, modify the Bootstrap.ini and CustomSettings.ini per the preceding examples.
  2. Using the Deployment Workbench, right-click the MDT Build Lab deployment share and select Properties.
    1. In the Windows PE tab, in the Platform dropdown list, make sure x64 is selected. Then in the Lite Touch Boot Image Settings area, configure the following settings:
      1. Image description: MDT Build Lab x64
      2. ISO file name: MDT Build Lab x64.iso
    2. Still in the Windows PE tab, select the Drivers and Patches tab, and configure the following:
      1. Selection profile: Nothing
      2. Select the Include all drivers from selection profile option
    3. Click OK.
    4. 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.
The contents of the E:\MDTBuildLab\Boot folder after updating the deployment share.

Step 7 – Create Windows Reference Images

Now it is time to create a Windows 11 Reference WIM Image, fully automated.

Note: To make sure Sysprep does not fail during the build and capture process, make sure the virtual machine you are using does not have Internet access during the entire process.

  1. On MDT01, copy the E:\MDTBuildLab\Boot\MDT Build Lab x64.iso file to your VMware or Hyper-V machine.
  2. Create a virtual machine named REF001, assign it 2 vCPUs and 4 GB RAM. Then mount MDT Build Lab x64.iso on the virtual machine.
  3. Start the REF001 virtual machine, and allow it to boot. Then complete the Deployment Wizard using the below settings:
    1. Select a task sequence to execute on this computer: Windows 11 Enterprise x64 24H2
    2. Specify whether to capture an image: Capture an image of this reference computer.
      1. Location:
      2. File name:

The task sequence will now do the following:

  • Install the Windows 11 Enterprise operating system.
  • Install the added applications, roles, and features.
  • Stage WinPE on the local disk.
  • Run Sysprep and reboot into WinPE.
  • Capture the Windows 11 installation to a WIM file.
Sysprep running.
MDT_thumb1_thumb
MDT capturing a Windows 11 Image.

Resources

Note: Please also check these posts:

Image Factory
Automate this process even further (you still need to do the step in this guide first), check out the Image Factory for Hyper-V solution by Mikael Nystrom (@mikael_nystrom).
http://github.com/DeploymentBunny/ImageFactoryV3ForHyper-V

About the author

Johan Arwidmark

4.4 7 votes
Article Rating
Subscribe
Notify of
guest
79 Comments
Newest
Oldest Most Voted
Jamaal Sandy
Jamaal Sandy
11 months ago

Hello, quick question,

I've been following you guys for a while now and thanks for sharing your content. I noticed you didn't have Windows updates selected in the screen shot like other OS's like Windows 7 and Windows 10. Is there a reason?

Jamaal Sandy
Jamaal Sandy
9 months ago

Ok, thanks for getting back to me, appreciate it.

Jamaal
Jamaal
1 month ago

Johan,

One more question, I know you said there's no need to enable the Windows update steps in MDT, but what about the latest cumulative updates? The ISO will have it already up to date? I ask that because when I just finished creating a Windows 11 25H2 VM via MDT and went to check updates, it wanted to install KB5101650 which is a cumulative update.

So should we also create a profile in the MDT setup and add the latest cumulative like in the past? Or still not necessary?

steyrs
1 year ago

As always – great article Johan. Just finished the challenge to build and capture Windows 11 24H2 – july edition ISO. (filename: SW_DVD9_Win_Pro_11_24H2.9_64BIT_English_Pro_Ent_EDU_N_MLF_X24-08654) Running sysprep – I got this error: Expected image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual image state is IMAGE_STATE_COMPLETE – sysprep did not succeed. FAILURE (6192): ERROR – Sysprep did not complete successfully Sysprep kept failing – and I identified these 3 UWP packages to be problematic. Microsoft.WidgetsPlatformRuntime_1.6.14.0_x64__8wekyb3d8bbwe Microsoft.BingSearch_1.1.37.0_x64__8wekyb3d8bbwe Microsoft.StartExperiencesApp_1.1.200.0_x64__8wekyb3d8bbwe Did the following in an elevated powershell – to fix the problem. Get-appxpackage *widgets* Get-appxpackage *widgets* | remove-appxpackage   Get-appxpackage *Microsoft.BingSearch* Get-appxpackage *Microsoft.BingSearch* | remove-appxpackage   Get-appxpackage *StartExperiencesA* Get-appxpackage… Read more »

Kevin
Kevin
1 year ago

We've been using MDT for years, and have followed the guide here to add Windows 11. We have the strangest error. The Restore User State step fails because the scripts can't create subfolders to copy the USMT files over due to what appears to be security permissions on the imaged machine. Then after reboot login fails with "user profile service failed the sign in user profile cannot be loaded" at the login screen. Or if it does login, any attempt to copy files to the hard drive fails with "The file is too large for the disk". I'm talking about… Read more »

Sebastien
Sebastien
1 year ago

Hello Johan, First, thank you for all your job ! I’m just getting started with MDT and making my first experiences. I need to prepare a Windows 11 system that will be deployed using MDT/WDS. As you mentionned in the "Real World" note, I don't want to do a gold image but I need to clean install Windows 11 on 100 computers. Here’s what I’ve done so far: • Downloaded the ISO from Microsoft • Added the system to MDT/WDS by mounting the ISO and creating a Standard Client Task Sequence (and litetouch etc.) • Added drivers and customized the… Read more »

Sebastien
Sebastien
8 months ago

It looks like Microsoft ISO a ready to déployer and a other sysprep is not needed.

Bufu
Bufu
1 year ago

Hi! so I am very new to this but would need some help deciding on the best approach for my task. We will soon be receiving new laptops and workstations for our customers for the Windows 11 migration. For that I want to use WDS + MDT. I already set up WDS and MDT and tested a Windows 11 install from PXE using this guide: https://techlensfocus.com/index.php/2024/04/10/deploying-windows-11-with-mdt-a-comprehensive-guide/ Now in your guide you capture an image at the end, while the other just installs from the task sequence. Why use one over the other or optimally combine both? What I think I… Read more »

Stefano
Stefano
1 year ago

Hi,
I've ADK 10.1.26100.2454 and I want to capture ref image Win 11 Pro 24H2 v.26100.4061
I try it and I capture the image but if I deploy it I noted a problem, if I start cmd like administrator the cmd open on user folder (C:\Users|XXX) instead Admin mode C:\Windows|System32

Megh Desai
Megh Desai
1 year ago

Hello John, Thank you for this article it has been very useful to us for creating our MDT server. I have followed your steps to create a Win11 24H2 reference! Will this same process work for 23H2? Also, once we have the captured WIM we can deploy to other device by creating a new task sequence with that WIM? The employee who was managing our imaging has left the company and I am just trying to get it figured out so we can deploy win 11 images to new laptops.Thank you!

Yakov
Yakov
1 year ago

Hi! Is there a way to add PowerShell script to run on FinishAction step in CustomSettings.ini or it's just SHUTDOWN or REBOOT?

Mrkuff
Mrkuff
1 year ago

Great instruction!! Just wanted to add (I've just spend too much time on this NOT to share it) that if you purpose build your MDT server on a private virtual switch with your reference VM, without Domain/DC on it : (with the latest 24H2 ISO with Cumulative update slipstreamed) UserDomain=WORKGROUP in bootstrap.ini (not the machine name) and also install a DHCP on your MDT server. (using the IP config setting in the Wizard wont cut it, it's not doable in bootstrap.ini (with OSAdapterx) and serving an IP to your reference machine from the MDT server is smooth sailing. Add a… Read more »

Kaspars Gribusts
Kaspars Gribusts
1 year ago

Hello! Great instruction but I have few questions( I could not find answer in google) :
After creating reference image/golden iso (win24h2) after deploying it to the laptop on the first boot I can see that windows is trying to get some updates – we are preparing your system, please wait etc. message. How prevent that laptops do not check for updates on first boot/sign in? For now it is not big problem, but later when new version 24h3 for example comes out ? I would like to prevent this.
Any tips how to do in ?

Dann Fuller
Dann Fuller
1 year ago

Thanks for putting this together. My question is, will doing this impact an existing MDT install's ability to deploy Win 10 task sequences? The early steps of the article seem to be dealing with new install of MDT, but once getting to Step 3 it shows several other OSes already imported.

I'm currently running v10.1.19041.1 of the ADK, I'm assuming (hoping) that installing 26100 or 22621 just adds the ability to support Win 11, and won't break the existing Win 10 deployment task sequences?

Rikesh Sheth
Rikesh Sheth
1 year ago

We want to have a build that will allow us to enable bitlocker in the future, we don't want to enable it now. Is this something that needs to be in the Tsk Sequence initially before enabling encryption later and other group policies? Or do the PCs need to be rebuilt? Does it matter if reference image when capturing wim had vTPM enabled to be deployed to physical desktops? as i thought vTPM needs to be enabled as requirement in windows 11. If you use OEM it requires vTPM however I noticed if using winpe it bypasses TPM part and… Read more »

Rikesh Sheth
Rikesh Sheth
1 year ago

Hi do we have to enable TPM module if create it in VMWare as a reference image for MDT?

Kris Titeca
Kris Titeca
1 year ago

Hey Johan, Great article as usual but I had a question around the whole black lotus thing. Would it make sense to already include step 1 and 2 in a reference image? My idea would be to reduce the number of reboots afterwards but I'm not really sure if that would work since the new boot manager is on the EFI partition and is that even captured at all? I also notice that I still create a reference image using a gen1 vm, so if it would make sense I would most likely need to use a gen2. I would… Read more »

Kris Titeca
Kris Titeca
1 year ago

Hey Johan, thanks! I first thought that the DB update was some OS file to later understand that this is actually a firmware thing, so indeed, this doesn't make sense.

Shawn
Shawn
1 year ago

I've been using MDT to create my reference images for some time now. My understanding is that MDT is going away later this year. What will be the next method?

Nizar Ben Nouba
Nizar Ben Nouba
1 year ago

Clear explanation, but you should not have any drivers added to deployment share used to build reference images !

Last edited 1 year ago by Nizar Ben Nouba
Jeff Amos
Jeff Amos
1 year ago

Hi Johan, Thank you for the depth of insight you always post. So I've been building reference images using Hyper-V for a while now and have successfully built 22H2 and 23H2 golden images that I deploy to my infrastructure. I then capture and deploy them using a third-party tool (Ivanti). Recently however with 24H2, after deploying to a laptop and enabling BitLocker, the laptop on reboot goes into an Automatic Repair Blue-screen and will not go past the blue screen. On examining the partitions with Diskpart I noticed the drive letters have been reassigned and what was the C: driver… Read more »

Last edited 1 year ago by Jeff Amos
Jeff Amos
Jeff Amos
1 year ago

Thanks for the reply. I also wanted to add, I have a 23H2 that I built on 11/17 which I deploy on machines perfectly but the moment I update the computer and enable Bitlocker, I get the blue screen even on a 23H2. In my testing If I turn on Bitlocker BEFORE updating the computer, everything works fine and I'm able to upgrade it to 24H2. But if I update the computer before enabling Bitlocker, I run into the same blue screen issue. It seems to me that the January update introduces something that breaks the old Bitlocker process but… Read more »

Mono
Mono
1 year ago

Hello Johan,

When I try to capture a W11 24H2, it fails getting the error FAILURE (5456): Unable to determine Destination Disk Partition, and/or Drive. See BDD LOG for more information.

But if i try to capture W11 23H2 it works fine without any errors, any suggestions what can be causing this error?

The error suggest to check BDD log but I can not open it from the command line.

Thank you

Alejandro Palao
Alejandro Palao
1 year ago
Reply to  Mono

The exact same thing used to happen to me. It is because, during the capture process, it is unable to assign a letter to the system drive. To fix it, correct the system partition before starting the capture process:

diskpart
Select Disk 0
Select Partition 3 (check your partition number before)
GPT attributes=0x0000000000000000

You can check this video for more information: How To Fix C-Drive Not Showing When Capturing Windows 11- MDT – YouTube

Jennifer Smith
Jennifer Smith
1 year ago

I've had a working MDT build of 23H2, so decided to follow along (a few things in here I hadn't done before!) with 24H2. Instead of creating a new task sequence, I edited my existing to change the OS. Normally I follow that up with editing the Unattend.xml from within MDT, but when I try that, I get the following error: Performing the operation "generate" on target "Catalog". Starting: "C:\Program Files\Microsoft Deployment Toolkit\Bin\Microsoft.BDD.Catalog40.exe" "C:\BuildWin11\Operating Systems\REFW11-24H2\Sources\install.wim" 7 > "C:\Users\js\AppData\Local\Temp\Microsoft.BDD.Catalog.log" 2>&1 Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ComponentStudio.ComponentPlatformInterface, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot… Read more »

Nathan Pattimore
Nathan Pattimore
1 year ago

Hi Johan I cannot currently build using 24H2 task sequence, it fails just after the Install OS part, and trying to do the unattend with DISM fails FAILURE ( 5627 ): -2146498219 0x800F0955: Run DISM.exe Have looked up numerous articles, I updated to the very latest Dec ADK, but then saw your article so went back to 22H2 etc etc. Our 23H2 Task Sequences still work fine, but 24H2 fails. I am doing this on a VM though (VMWare) so havent tried it on a physical device to see if it also fails there. Im pretty lost now in what I… Read more »

Last edited 1 year ago by Nathan Pattimore
John
John
11 months ago

Thank you so much! I have been having the same issue for almost a week and couldn't figure out. Disable the Update Patches in Task Sequence solved the issue!

Brendan
Brendan
1 year ago

Hi Johan,

Hope you're well.

We have an very odd issue with our 24H2 deployment, seems to work for some laptops but not others..and yes, we have all the relevant drivers available.

They seem to hang at the postinstall phase, removing and reconnecting the ethernet cable does the trick, so I'm not sure if there is a bug in the 24H2 November build that is causing the disconnect.

Using the 24H2 May ADK and the 22H2 ADKPE, with the fixes mentioned in this post, applied.

For reference, we deployed the image to a laptop a few days ago, no issues.

Brendan
Brendan
1 year ago

Hello, I've actually managed to fix this by putting in a CMD task, which calls a Powershell script, in the post-install task sequence. It edits the Wcmscv so it no longer requires the Winhttpautoproxy service, to start. Works like a charm

Brendan
Brendan
1 year ago

#Set Execution Policy
Set-ExecutionPolicy -ExecutionPolicy Bypass

#Change Dependency
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Wcmsvc -Name DependOnService -Value @('RpcSs', 'nsi') -Type MultiString

#Set Service WinHttpAutoProxySvc to Manual
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySvc -Name 'Start' -Value '3' -PropertyType DWORD -Force:$true

#Restart services
Restart-Service WcmSvc -Force:$true -Confirm:$false

Brett LaBare
Brett LaBare
1 year ago
Reply to  Brendan

So what's interesting is we are seeing a similar scenario. After first boot of deployed 24H2 image, it just seems to hang. We are not PXE booting, using USB media. It seems the only way to get it to continue is do a manual reboot, then it kicks right off with postinstall steps. Brendan, can you elaborate on your fix? This is driving is crazy.

Rikesh Sheth
Rikesh Sheth
1 year ago

Hi Johan I'm starting a Windows 11 24H2 deployment project and have a few questions regarding the best approach. Specifically, I'm looking to: Add a Task Sequence for Windows 11 24H2 that performs a Hybrid AD-Join and enrolls devices into Intune. For on-premises desktops, maintain Group Policies and other management on-premises, but handle domain join and enrollment through Intune. Given that MDT is being deprecated, I'm concerned about the best deployment strategy for physical desktops and remote offices without local infrastructure (currently using USB Deployment MDT for Windows 10). Is Intune required for this scenario? Additionally, for office deployments, is… Read more »

Gary Becker
Gary Becker
1 year ago

Do you still recommend OSDBuilder? You didnt mention that here as in past posts. Also I thought Mikael updated Image Factory to v4.

Last edited 1 year ago by Gary Becker
Josh OBrien
Josh OBrien
1 year ago

Is there a way to get copyprofile working with win11 we had it working with our last win10 builds but our current win11 image 23h2 it's never worked.

The copy profile flags are all present in the unattend file, but every time we end up with a clean profile being deployed for new accounts

Mike Olson
Mike Olson
1 year ago

Hi Johan,
I am working on a laptop that has been upgraded from Windows 10 LTSC to Windows 11 LTSC, with all the preinstalled applications and environments set up by my organization. I need to sysprep and capture this running Windows 11 LTSC for mass deployment to other laptops. I will be using only this laptop to complete the entire process. How can I do this with MDT, as you posted here? Are there any ways to capture the existing Windows 11 LTSC using the DISM command without errors, especially after exiting the command and restarting the laptop?
Thanks.

ifrah Haim
ifrah Haim
1 year ago

what size of captured wim should i get from windows 11 + office? in my environment i get 16GB wim size. is that normal?

Haim
Haim
1 year ago

My is office 2021 64 bit. Same version with windows 10 is only 7gb. But for some reason with windows 11 I'm getting 16gb.

ifrah Haim
ifrah Haim
1 year ago

what module?

Alfonso Batista
Alfonso Batista
1 year ago

Hi Johan, your articules have been lifesaving for Deploying Windows 11. However, I wanted to ask, when i'm in the Generalize Phase of Sysprep, the Hyper-V Machine gets frozen and then nothing happens and I have to Disconnect it. Is there something I'm missing? It only happens with 24H2.

HiMa
HiMa
1 year ago

Thank you for the information. I am using it as a reference.

I have a question. It took about 25 minutes to deploy the 23H2 image, but it took about 40 minutes to deploy the 24H2 image.

Do you know where to set anything?

sid
sid
1 year ago

i am getting attached error when capturing a window 10 image that has been totally offline

MDT-sysprep-error
sid
sid
1 year ago

is there any problem with the way I have WinPE drivers assigned to dpeloymentshare?

winpeX64
L. Ozon
L. Ozon
1 year ago

I'm sorry, but I don't understand this statement. WinPE – x64 should really have the relevant system, storage (and possibly video) drivers for the Windows guest based VM on the relevant/underlying virtualization platform (RHV, QEMU, VirtualBox, VMWare, Hyper-v, etc.) you are using (or the relevant hardware drivers if you're using a physical machine model) to create the reference image. Without these drivers, it will be impossible to use LiteTouch_PE.wim file to boot the system and initiate LTI Stage-1. Furthermore, at a later stage, you can use MDT to create a generic WinPE.ISO (or WIM file) that you can use to… Read more »


>