Windows 11 in OOBE with MDT

Windows 11 OOBE – Step-by-step guide to Windows 11 in OOBE with MDT, including configuration, deployment, troubleshooting and practical administration tasks for MDT.

Windows 11 OOBE – The goal is to install a clean computer for Intune use or to reinstall a personal PC

Windows 11 OOBE

Windows 11 OOBE – A server or a computer with

  • A share
  • Windows ADK installed
  • MDT installed
  • A WDS server or a USB key for booting
  • A DHCP server

Prerequisites

Windows 11 OOBE – What you need

  • A Windows 11 consumer or business ISO (do not use an ISO made with the Media Creation Tools)
  • Installation of Windows ADK Windows 10 ou 11 ,
  • Select the following options:
    • For the Windows ADK module
      • Deployment Tool
      • USMT
Windows 11 OOBE screenshot
  • For the additional PE Windows module for the Windows ADK
    • WinPE

Creating the Deployment Share

  • Launch MDT using the “Deployment Workbench” shortcut, then create a new “Deployment Share”.
Windows 11 in OOBE with MDT screenshot
  • Specify a local path and then validate the following screens (configuration will be done later) with the customsetting.ini and bootstrap.ini files.
Windows 11 in OOBE with MDT screenshot

Creating Boot Images

Manage Drivers

Windows 11 OOBE – Create 2 directories in MDT that only manage WINPE drivers

  • WinPEx86 => Used for 32-bit WinPE images
  • WinPEx64 => Used for 64-bit WinPE images
Windows 11 in OOBE with MDT screenshot

Folder creation

  • In “Out-of-Box Drivers”, create a new folder
Windows 11 in OOBE with MDT screenshot
  • Specify the folder name and validate
Windows 11 in OOBE with MDT screenshot

Downloading WinPE drivers

Windows 11 OOBE – WinPE is based on Windows 10, you will need to download drivers for Windows 10

  • You can use the Dell Driver pack : Download
Windows 11 in OOBE with MDT screenshot
  • Extract the cab with 7zip (ignore the 7zip error)
Windows 11 in OOBE with MDT screenshot

Importing drivers

  • In the WinPE folders of MDT, add the drivers
Windows 11 in OOBE with MDT screenshot

Creating profiles

  • You then need to create 2 profiles in MDT
Windows 11 in OOBE with MDT screenshot
  • The profiles will point to the corresponding WinPE driver folders
Windows 11 in OOBE with MDT screenshot

Associating profiles in WinPE

  • In the properties of the DeploymentShare
Windows 11 in OOBE with MDT screenshot
  • Select the WinPE driver profiles for x86 and x64
Windows 11 in OOBE with MDT screenshot

Bootstrap.ini

Windows 11 OOBE – You can modify the bootstrap.ini file

  • The path of the deployment share => DeployRoot
  • The path of the deployment share => KeyboardLocalePE
  • Authentication => UserID, UserDomain et UserPassword

Windows 11 OOBE – If the authentication account is not specified, a popup asking for authentication will be displayed during deployment.

Windows 11 OOBE – Exemple file

[Settings]
Priority=Default

[Default]
; Indiquez le chemin UNC de votre deploymentshare
DeployRoot=dc.leblogosd.lanMDT

; N'affiche pas l'ecran de bienvenue
SkipBDDWelcome=YES

; Passe le clavier en francais
KeyboardLocalePE=040c:0000040c

; Si le compte n'est pas indiqué, il faudra renseigner un compte avec des droits sur le partage
UserID=UserMDT
UserDomain=leblogosd
UserPassword=Password1

Windows 11 OOBE

Boot image

Windows 11 OOBE – The boot images contain a WinPE with the tools to connect to the deployment share.

  • To generate the WinPE, right-click on the deploymentShare, then select “Update Deployment Share”
Windows 11 in OOBE with MDT screenshot
  • Select “Completely regenerate the boot images” and validate.
Windows 11 in OOBE with MDT screenshot
  • Once the images are generated, you can use them for deployment.
Windows 11 in OOBE with MDT screenshot
  • You will need to use the ISOs or the LiteTouchPE WIMs.

Adding Windows 11 Sources

  • In “Operating Systems”, select “Import Operating System”
Windows 11 in OOBE with MDT screenshot
  • Select “Full set of source files”
Windows 11 in OOBE with MDT screenshot
  • Then select your drive (physical or virtual) containing Windows 7 or 10.
  • Validate the following screens.

New Task Sequence

Windows 11 OOBE – You will need to create a task sequence

  • Right-click on “Task Sequence”, then select “New Task Sequence”
Windows 11 in OOBE with MDT screenshot
  • Enter the ID (this will be used to create a folder in the control directory of your DeploymentShare).
  • Enter the name.
Windows 11 in OOBE with MDT screenshot
  • Select “Standard Client Task Sequence”.
Windows 11 in OOBE with MDT screenshot
  • Select the OS you want to install.
Windows 11 in OOBE with MDT screenshot
  • The task is now available.

Windows 11 OOBE

Drivers

  • We will simply create a folder for each workstation model we will manage. Another article will detail a more comprehensive driver management.
Windows 11 in OOBE with MDT screenshot
  • Select “Import Drivers”.
Windows 11 in OOBE with MDT screenshot
  • Select “Import Drivers”.
Windows 11 in OOBE with MDT screenshot

CustomSetting.ini

Windows 11 OOBE – The customsetting.ini file allows you to configure the MDT wizard and some deployment options.

Windows 11 OOBE – The file is located in the control folder of your deployment share.

Windows 11 in OOBE with MDT screenshot

The customsetting.ini file I use

[Settings]
Priority=Default
Properties=MyCustomProperty

[Default]
OSInstall=Y
_SMSTSOrgName=%TaskSequenceName%
SkipTaskSequence=No
SkipComputerName=NO
OSDComputerName=%SerialNumber%
SkipDomainMembership=YES
SkipUserData=YES
DeploymentType=NEWCOMPUTER
SkipProductKey=YES
SkipCapture=Yes
SkipAdminPassword=Yes
AdminPassword=azerty
SkipPackageDisplay=Yes
SkipBitLocker=YES
SkipComputerBackup=Yes
SkipLocaleSelection=YES
SkipTimeZone=YES
TimeZone=105
TimeZoneName=Romance Standard Time
SkipRoles=YES
SkipApplications=NO
SkipAdminAccounts=YES
SkipSummary=NO
SkipFinalSummary=YES
FinishAction=SHUTDOWN

Applications

Windows 11 OOBE – We will be able to manage 2 applications for this OOBE mode

  • OOBE mode
  • OEM Activation

Windows 11 OOBEhttps://github.com/DavidWuibaille/MDT/tree/main/Win10_OOBE

Application to OOBE Mode

Windows 11 OOBE – La ligne de commande pour passer en OOBE sera la suivante

c:windowssystem32sysprepsysprep.exe /oobe /quit

Application To OEM Activation

$ProductKey = (Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey
cscript "c:windowssystem32slmgr.vbs" -ipk $ProductKey
cscript "c:windowssystem32slmgr.vbs" -ato

Create Application

  • To add applications, right-click on “Applications” then “New Application”.
Windows 11 in OOBE with MDT screenshot
  • Select “Application with source files”.
Windows 11 in OOBE with MDT screenshot
  • Specify the Application Name (ModeOOBE ou ActivationOEM)
Windows 11 in OOBE with MDT screenshot
  • Select the source directory of your application.
Windows 11 in OOBE with MDT screenshot
  • Specify the command line for installing your application.
Windows 11 in OOBE with MDT screenshot

Windows 11 OOBE – MDT is now ready to carry out installations in OOBE mode. You can use a boot USB key or a WDS to start your compute