Using an ESD file with SCCM for Windows 10 1703 deployment

Windows 10 can be delivered as INSTALL.WIM or INSTALL.ESD.  SCCM expects the WIM file.  Previous ESD files had an easier format to work with, and it recently changed.  This link steps through how to use the ESD file.

https://deploymentresearch.com/Research/Post/446/Deploying-Windows-10-build-9860-using-ConfigMgr-2012-R2

He said:

Extract the install.wim

To extract the install.wim in a format that ConfigMgr 2012 R2 accepts, you need to change the compression type in the image. You can either do that by applying the correct index (#4) to a folder, and then capture that folder to a new install.wim file. But you can also create a new empty WIM file with the right compression type, and then just export the correct index from the install.esd file to this new wim file.

Update: There is a PowerShell script available that does everything for you here: http://www.deploymentresearch.com/Research/tabid/62/EntryId/197/How-to-create-a-Windows-10-Enterprise-build-9860-ISO.aspx

1. Create a new empty WIM file, with the right compression type, by running the following commands (press Enter after each command):

md C:\EmptyFolder

dism.exe /Capture-Image /ImageFile:C:\Temp\Install.wim /CaptureDir:C:\EmptyFolder /Name:EmptyWimImage /Compress:max

2. Export the Windows 10 build 9860 image from the install.esd file by running the following command.

dism.exe /Export-Image /SourceImageFile:C:\RecoveryImage\Install.esd /SourceIndex:4
/DestinationImageFile:C:\Temp\Install.wim /Compress:Recovery

3. Delete the empty index (#1) in the install.wim.

dism.exe /Delete-Image /ImageFile:C:\Temp\Install.wim /Index:1

NOTE: The stuff in blue is what worked for me!! (I changed some details, but the technique is valid). Here’s my script.

I had a permissions problem so I copied the install.WIM file somewhere better and SCCM seems happy now. I put it in \\lab-cm01\REMINST\Images\Install.wim. Not sure how it’s gonna work at deployment time.

Batch Script
@Echo off
REM This works in the current folder.
REM Expects to find INSTALL.ESD in SOURCES below here
if not exist SOURCES\Install.esd goto NotFound

REM Create the empty WIM file with the correct compression
md EmptyFolder
dism.exe /Capture-Image /ImageFile:sources\Install.wim /CaptureDir:EmptyFolder /Name:EmptyWimImage /Compress:max
RD EmptyFolder

REM Extract from ESD to the WIM file (creates SourceIndex 2 in new INSTALL.WIM file)
REM Expects that the #1 slot holds the correct Windows version
set SourceIndex=1
dism.exe /Export-Image /SourceImageFile:sources\Install.esd /SourceIndex:%SourceIndex% /DestinationImageFile:sources\Install.wim /Compress:Recovery
REM Delete index1 (temp empty folder)
dism.exe /Delete-Image /ImageFile:sources\Install.wim /Index:1

REM show the results
dism /Get-WimInfo /WimFile:sources\install.wim
goto :EOF

:NotFound
@Echo Didn't find the required SOURCES\INSTALL.ESD file 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s