Skip to content

sdhlfqr/windows-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Imaging Script

Usage

.\Build-CustomImage.ps1 -MountPath C:\Mount -SourceImagePath H:\ -DesiredVersionName "Windows 11 Professional"

Guide

  1. Download the Windows installation image:
  2. Mount the installation image:
    Mount the installation image
  3. Pick the desired version using Get-WindowsImage:
    Get-WindowsImage -ImagePath H:\sources\install.wim
  4. Find the ID for the Latest Cumulative Update at:
  5. Find the ID for the Service Stack Update at:
    Service Stack Update Update ID
  6. Download Updates and save at .\Updates from:
  7. Export current Windows drivers using Export-WindowsDriver:
    Export-WindowsDriver -Online -Destination .\Drivers
  8. Download Packages (e.g. WinGet) at .\Packages:
  9. Get Capabilities list using Get-WindowsCapability:
    Get-WindowsCapability -Path C:\Mount
  10. Get Features list using Get-WindowsOptionalFeature:
    Get-WindowsOptionalFeature -Path C:\Mount
  11. Download and Install Windows Assessment and Deployment Kit
    • Pick the Deployment Tools
      ADK Installer
  12. Open Up Windows System Image Manager and open the H:\sources\install.wim file.
    Select Windows Image
  13. Create and configure the AnswerFile and save at .\Configs\unattend.xml.
  14. Run PowerShell as Administrator and run:
    .\Build-CustomImage.ps1 -MountPath C:\Mount -SourceImagePath H:\ -DesiredVersionName "Windows 11 Professional"

Releases

No releases published