Easily Create a custom boot.wim for use with OSD

Sometimes finding a how to guide on all things OSD can be quite challenging. One of my customers had a need to create their own custom boot wim but their admins didn't have the time to research how to do it. They asked if I could produce a document listing the commands needing to be entered into the WAIK Deployment Tools Command Prompt.


I know that this information is out there, I just wanted to list all of the commands in one place so that hopefully like my customer, you wont need to search around to find this anymore.



**NOTE** Be sure to replace the x86 with amd64 when creating a x64 boot wim.


COPYPE.CMD x86 c:\winpe

DISM /Mount-Wim /WIMFile:c:\winpe\winpe.wim /Index:1 /MountDir:C:\winpe\mount

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.cab"

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab"

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab"

DISM /Image:c:\winpe\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wds-tools.cab"

DISM /Image:c:\winpe\mount /Set-TargetPath:X:\

DISM /Unmount-Wim /Mountdir:c:\winpe\mount /commit


 Thanks for reading!








Comments (0)

Skip to main content