.\Build-CustomImage.ps1 -MountPath C:\Mount -SourceImagePath H:\ -DesiredVersionName "Windows 11 Professional"
- Download the Windows installation image:
- Mount the installation image:
- Pick the desired version using
Get-WindowsImage
:Get-WindowsImage -ImagePath H:\sources\install.wim
- Find the ID for the Latest Cumulative Update at:
- Find the ID for the Service Stack Update at:
- Download Updates and save at .\Updates from:
- Export current Windows drivers using
Export-WindowsDriver
:Export-WindowsDriver -Online -Destination .\Drivers
- Download Packages (e.g. WinGet) at .\Packages:
- Get Capabilities list using Get-WindowsCapability:
Get-WindowsCapability -Path C:\Mount
- Get Features list using Get-WindowsOptionalFeature:
Get-WindowsOptionalFeature -Path C:\Mount
- Download and Install Windows Assessment and Deployment Kit
- Open Up
Windows System Image Manager
and open theH:\sources\install.wim
file.
- Create and configure the
AnswerFile
and save at .\Configs\unattend.xml. - Run
PowerShell
asAdministrator
and run:.\Build-CustomImage.ps1 -MountPath C:\Mount -SourceImagePath H:\ -DesiredVersionName "Windows 11 Professional"