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.
- Windows 11 Enterprise 24H2 (make sure to use the latest media).
- Windows ADK for Windows 11 22H2 build 22621: Download and install the Windows ADK | Microsoft Docs
Note: Windows ADK for Windows 11 24H2 – build 10.1.26100 – will work ok too, but again there are some known bugs with PowerShell in WinPE (the DISM cmdlets). - WinPE Addon for Windows ADK for Windows 11 22H2: Download and install the Windows ADK | Microsoft Docs
- Microsoft Deployment Toolkit (MDT) 8456: Microsoft Deployment Toolkit documentation | Microsoft Docs
- MDT 8456 HotFix: Windows 10 deployments fail with Microsoft Deployment Toolkit on computers with BIOS type firmware
- Script to relax default deployment share permissions: http://github.com/DeploymentResearch/DRFiles/blob/master/Scripts/Set-MDTBuildLabPermissions.ps1
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

2. Install WinPE Addon for Windows ADK for Windows 11, and select the following component:
Windows Preinstallation Environment (Windows PE)

3. Install MDT using the default settings.

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

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.

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

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.
- 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. - Right-click the Windows 11 node, and select Import Operating System. Use the following settings for the Import Operating System Wizard.
- Full set of source files
- Source directory: D:
- Destination directory name: REFW11X64-24H2
- 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.

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

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)

Step 5 – Create and Configure the MDT Task Sequence
- 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.
- 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:
- Task sequence ID: REFW11-X64-001
- Task sequence name: Windows 11 Enterprise x64 24H2
- Task sequence comments: Reference Build
- Template: Standard Client Task Sequence
- Select OS: Windows 11 Enterprise x64 24H2
- Specify Product Key: Do not specify a product key at this time
- Full Name: ViaMonstra
- Organization: ViaMonstra
- Internet Explorer home page: about:blank
- Do not specify an Administrator password at this time
- 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.
- On the Task Sequence tab, configure the Windows 11 Enterprise x64 24H2 task sequence with the following settings:
- 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 - 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. - 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.
- In the State Restore / Custom Tasks group, add a new Install Application action with the following settings:

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
- On MDT01, modify the Bootstrap.ini and CustomSettings.ini per the preceding examples.
- Using the Deployment Workbench, right-click the MDT Build Lab deployment share and select Properties.
- 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:
- Image description: MDT Build Lab x64
- ISO file name: MDT Build Lab x64.iso
- Still in the Windows PE tab, select the Drivers and Patches tab, and configure the following:
- Selection profile: Nothing
- Select the Include all drivers from selection profile option
- Click OK.
- 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.
- 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:

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.
- On MDT01, copy the E:\MDTBuildLab\Boot\MDT Build Lab x64.iso file to your VMware or Hyper-V machine.
- 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.
- Start the REF001 virtual machine, and allow it to boot. Then complete the Deployment Wizard using the below settings:
- Select a task sequence to execute on this computer: Windows 11 Enterprise x64 24H2
- Specify whether to capture an image: Capture an image of this reference computer.
- Location:
- 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.


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
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?
No need, since Microsoft releases updated media every month, which keeps the resulting Image smaller. You can absolutely enable it.
Ok, thanks for getting back to me, appreciate it.
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?
Technically you can install a downloaded update as an application, but it's better just to download a new ISO and export the WIM to MDT. Microsoft are updating their media monthly.
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 »
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 »
Sorry, I have not
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 »
If needing a reference image, it needs to be Sysprepped
It looks like Microsoft ISO a ready to déployer and a other sysprep is not needed.
If you use the default ISO from Microsoft, yes, that one is deployable as is, and have been since Windows Vista… However, if you install additional applications and want to capture them into a thick image, then you need to run Sysprep before capture.
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 »
These days, most organizations are ditching thick reference images and doing the customizations at deployment time instead.
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
Sorry for the very late reply, but I think this issue has been fixed.
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!
Yes 🙂
Hi! Is there a way to add PowerShell script to run on FinishAction step in CustomSettings.ini or it's just SHUTDOWN or REBOOT?
That step does not support running a script, but you can check this solution: https://www.deploymentresearch.com/final-configuration-for-mdt-2013-lite-touch-now-with-autologon-support/
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 »
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 ?
Specifying the target feature update version via registry or policy should prevent the machine from updating to a newer feature update as long as the current version is supported. This setting works for Pro/Edu/Ent (but not Home). Also, the next version of Windows 11 will be 25H2.
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?
Windows ADK for Windows 11 24H2 will happily deploy Windows 10
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 »
There is no need to have a vTPM on the VM you are building reference images on, and they should never have BitLocker enabled. BitLocker is something you enable at deployment time.
Hi do we have to enable TPM module if create it in VMWare as a reference image for MDT?
No need, MDT only applies the WIM image during build and capture. Setup.exe is never run.
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 »
Don't think so, boot files will be added during deployment anyway.
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.
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?
MDT will still work after October 10, 2025, but if your organizations require support from Microsoft, your only option is ConfigMgr OSD. You can also buy a third-party deployment solution that will be supported by that vendor.
Clear explanation, but you should not have any drivers added to deployment share used to build reference images !
In general, no drivers needed are needed when building a reference image in a VM, but it depends on the platform.
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 »
I have not seen that, but there were some imaging issues with early 24H2 media. The December 2024, and January 2025 media seems to be solid.
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 »
Nothing that I've seen, do you have this issue on all hardware models, including VMs?
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
I have not seen that with Build and Capture task sequences, so try using that instead of capture only task sequences.
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
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 »
It's better to use either ADK 22H2 or ADK 24H2, the 25398 build was an interim release and it was not a very good one. As far as catalog files go, they are not required, and rarely needed.
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 »
Good find, and thanks for sharing!
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!
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.
There were some issues with both October and November 2024 media, would recommend trying with December 2024, or January 2025 media.
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
Thanks for the info, would you mind sharing that script?
#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
Awesome! Thank you!
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.
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 »
For Hybrid join deployment, without Autopilot or third-party offline domain join connector, you need to deploy devices on your network, and have the devices synced via Entra Connect, and automatically enrolled. Even though MDT is no longer supported, it still works. If you want OSD support from Microsoft the only option is ConfigMgr OSD.
Do you still recommend OSDBuilder? You didnt mention that here as in past posts. Also I thought Mikael updated Image Factory to v4.
Yes, I still use OSD Builder, and yes there is Image Factory v4 available from Mikeal. I still use V2 since I'm often build and deploy on the same Hyper-V host.
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
Not that I know of. I recommend staying away from CopyProfile.
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.
In theory, yes… But I don't recommend trying to Sysprep and capture a physical PC, if Sysprep breaks you have to start over… Better to use a virtual machine, that you can snapshot before trying. Much cleaner image too.
what size of captured wim should i get from windows 11 + office? in my environment i get 16GB wim size. is that normal?
My image with Office (M365 Apps) is just below 7 GB.
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.
Removed… posted in the wrong thread
what module?
Oops, that was a reply to another thread… please disregard
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.
You'll have to check the setupact.log (or setuperr.log) from Sysprep to see what's causing the failure. And also make sure the VM does not have Internet access.
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?
In my testing, there was only a 2-minute difference between Windows 11 23H3 and Windows 11 24H2. The tests were done using November 2024 media.
i am getting attached error when capturing a window 10 image that has been totally offline
That I have seen, try setting SkipFinalSummary to YES, or add some additional resources to the VM. This is a timeout issue.
is there any problem with the way I have WinPE drivers assigned to dpeloymentshare?
You should not have any drivers added to the deployment share used to build reference images. Use VMs only.
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 »
Some clarification: if using Hyper-V or VMware for your reference images, with proper VM guest configurations, you don't need any additional drivers. Other VM platforms, like Nutanix may need drivers.