Slipstreaming Windows Server 2008 R2 with Service Pack 1

A step-by-step guide to integrate or slipstream Service Pack 1 into Windows Server 2008 R2 DVD or ISO. This method also works for Windows 7.

Offline slipstreaming is not supported by Microsoft.
Microsoft way to do this is you have to install windows and upgrade it with the service pack and then make an image file.

Pointing upPrerequisites and Links:

I am using Windows 7 OPK for this demonstration.

image

image

image

Create folders

image

MD C:\DP\RIP

MD C:\DP\SourceDVD

MD C:\DP\SP1-Extract

MD C:\DP\SP1-CAB-EXTRACT

MD C:\DP\WIM-Mount

Copy Windows 2008 R2 DVD to C:\DP\SourceDVD

Extract Service Pack files

windows6.1-KB976932-X64-INTL.exe /extract

files are extracted in background so wait for some time.

image

[HRESULT = 0x800f082e – CBS_E_NOT_ALLOWED_OFFLINE]

This is workaround method for Offline slipstreaming to overcome stoppage which disallows the Offline slipstreaming.

  • Extract windows6.1-KB976932-X64.cab using 7-zip to C:\DP\SP1-CAB-EXTRACT
  • Right Click on NestedMPPContent.cab in C:\DP\SP1-CAB-EXTRACT –> 7-Zip –> and click on Extract Here.
  • Delete NestedMPPContent.cab
  • Right Click on KB976933-LangsCab0.cab in C:\DP\SP1-CAB-EXTRACT –> 7-Zip –> and click on Extract Here. on Confirm File Replace click Yes to All
  • Delete KB976933-LangsCab0.cab
  • Edit C:\DP\SP1-CAB-EXTRACT\Windows7SP1-KB976933~31bf3856ad364e35~amd64~~6.1.0.17514.mum with Notepad++.  Change second last line (Line 41)

    <mum:packageExtended xmlns:mum=”urn:schemas-microsoft-com:asm.v3″ allowedOffline=”false” projectionPeakDisk=”359″ langProjectionPeakDisk=”512″ sqmBuildNumber=”7601″ sqmAttemptAppid=”101457923″ sqmResultAppid=”101457924″ sqmPoqexecAppid=”101457925″/></package>

    to

    <mum:packageExtended xmlns:mum=”urn:schemas-microsoft-com:asm.v3″ allowedOffline=”true” projectionPeakDisk=”359″ langProjectionPeakDisk=”512″ sqmBuildNumber=”7601″ sqmAttemptAppid=”101457923″ sqmResultAppid=”101457924″ sqmPoqexecAppid=”101457925″/></package>

  • Edit C:\DP\SP1-CAB-EXTRACT\update.mum with Notepad++. Change second last line (Line 22)

<mum:packageExtended xmlns:mum=”urn:schemas-microsoft-com:asm.v3″ allowedOffline=”false” projectionPeakDisk=”359″ langProjectionPeakDisk=”512″ sqmBuildNumber=”7601″ sqmAttemptAppid=”101457923″ sqmResultAppid=”101457924″ sqmPoqexecAppid=”101457925″/></package>

to

<mum:packageExtended xmlns:mum=”urn:schemas-microsoft-com:asm.v3″ allowedOffline=”true” projectionPeakDisk=”359″ langProjectionPeakDisk=”512″ sqmBuildNumber=”7601″ sqmAttemptAppid=”101457923″ sqmResultAppid=”101457924″ sqmPoqexecAppid=”101457925″/></package>

  • Edit C:\DP\SP1-CAB-EXTRACT\update.ses with Notepad++. Change Phase under Tasks operationMode=”OfflineInstall” (Line 34)

<package id=”Windows7SP1-KB976933~31bf3856ad364e35~amd64~~6.1.0.17514″ targetState=”Absent”/>

to

<package id=”Windows7SP1-KB976933~31bf3856ad364e35~amd64~~6.1.0.17514″ targetState=”Installed”/>

  • create blank test file in C:\DP rename it to “error.log” .

Windows 2008 R2 DVD has 8 Index.

In this demonstration I will just update Index 5 (DataCenter Edition en-US)

To see available Index in Source Folder use.

Dism /Get-WimInfo /WimFile:c:\dp\SourceDVD\sources\install.wim

Output of this Command will look like this

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

Details for image : c:\dp\SourceDVD\sources\install.wim

Index : 1

Name : Windows Server 2008 R2 SERVERSTANDARD

Description : Windows Server 2008 R2 SERVERSTANDARD

Size : 10,124,038,438 bytes

Index : 2

Name : Windows Server 2008 R2 SERVERSTANDARDCORE

Description : Windows Server 2008 R2 SERVERSTANDARDCORE

Size : 3,452,350,548 bytes

Index : 3

Name : Windows Server 2008 R2 SERVERENTERPRISE

Description : Windows Server 2008 R2 SERVERENTERPRISE

Size : 10,124,137,681 bytes

Index : 4

Name : Windows Server 2008 R2 SERVERENTERPRISECORE

Description : Windows Server 2008 R2 SERVERENTERPRISECORE

Size : 3,452,242,732 bytes

Index : 5

Name : Windows Server 2008 R2 SERVERDATACENTER

Description : Windows Server 2008 R2 SERVERDATACENTER

Size : 10,124,160,905 bytes

Index : 6

Name : Windows Server 2008 R2 SERVERDATACENTERCORE

Description : Windows Server 2008 R2 SERVERDATACENTERCORE

Size : 3,452,203,837 bytes

Index : 7

Name : Windows Server 2008 R2 SERVERWEB

Description : Windows Server 2008 R2 SERVERWEB

Size : 10,011,953,253 bytes

Index : 8

Name : Windows Server 2008 R2 SERVERWEBCORE

Description : Windows Server 2008 R2 SERVERWEBCORE

Size : 3,443,281,027 bytes

The operation completed successfully.

Use Deployment Tools Command Prompt Run as Administrator

image

image

Use this Command to mount WIM

DISM.exe /Mount-Wim /WimFile:C:\DP\SourceDVD\sources\install.wim /index:5 /MountDir:C:\DP\WIM-Mount

image

image

Integrating files of SP1 to Mounted image

DISM.exe /image:C:\DP\WIM-Mount /LogPath:C:\DP\error.log /Add-Package /PackagePath:C:\DP\SP1-CAB-EXTRACT

image

image

Copy “Licenses” folder from “C:\DP\WIM-Mount\Windows\System32\en-US” to other Location. This folder will be required to edit Boot.wim and update DVD contents.

Commit the changes.

dism /unmount-wim /mountdir:C:\DP\WIM-Mount /commit

image

image

If you want to update all index proceed with mounting different Index number, then integrate SP1 Files and then unmount with commit. This will update Install.wim file for each index.

Once you are done updating all index we will proceed to export wim so it will compress the wim file.

imagex /export C:\DP\SourceDVD\sources\install.wim * C:\DP\SourceDVD\sources\tempinstall.wim /check /compress maximum

After export is completed delete install.wim and rename tempinstall.wim to install.wim in C:\DP\SourceDVD\sources\

Wildcard indicates all index will be exported to new wim.

In my case i will export only index 5

imagex /export C:\DP\SourceDVD\sources\install.wim 5 C:\DP\SourceDVD\sources\tempinstall.wim /check /compress maximum

image

this will only keep one index in new wim.

Dism /Get-WimInfo /WimFile:c:\dp\SourceDVD\sources\install.wim

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

Details for image : c:\dp\SourceDVD\sources\install.wim

Index : 1

Name : Windows Server 2008 R2 SERVERDATACENTER

Description : Windows Server 2008 R2 SERVERDATACENTER

Size : 12,743,873,210 bytes

The operation completed successfully.

Updating Boot.wim

boot.wim has 2 index we will be updating Index 2 (Setup)

Dism /Get-WimInfo /WimFile:c:\dp\SourceDVD\sources\boot.wim

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

Details for image : c:\dp\SourceDVD\sources\boot.wim

Index : 1

Name : Microsoft Windows PE (x64)

Description : Microsoft Windows PE (x64)

Size : 974,874,943 bytes

Index : 2

Name : Microsoft Windows Setup (x64)

Description : Microsoft Windows Setup (x64)

Size : 1,090,888,843 bytes

The operation completed successfully.

to mount index 2
DISM.exe /Mount-Wim /WimFile:C:\DP\SourceDVD\sources\boot.wim /index:2 /MountDir:C:\DP\WIM-Mount

image

delete all folder in “C:\DP\WIM-Mount\sources\License\en-US” and “C:\DP\WIM-Mount\sources\License\en-US” there are 3 folder in both loaction.

Now copy all folder in “Licenses” Saved earlier to both location. “C:\DP\WIM-Mount\sources\License\en-US” and “C:\DP\WIM-Mount\sources\License\en-US” there are 4 folders in all.

Now Commit this change in boot.wim

dism /unmount-wim /mountdir:C:\DP\WIM-Mount /commit

image

to reduce file size in boot.wim we will export it.

imagex /export C:\DP\SourceDVD\sources\boot.wim * C:\DP\SourceDVD\sources\tempboot.wim /check /compress maximum

image

After export is completed delete boot.wim and rename tempboot.wim to boot.wim in C:\DP\SourceDVD\sources

Updating DVD

we have two updated wim in “C:\DP\SourceDVD\sources”

image

Updating DVD I prefer PowerISO

Delete \sources\license\_default\*

image

Delete \sources\license\en-us\*

image

Both Directory with files saved from “Licenses”

image

Delete Install.wim and boot.wim from sources folder

image

Copy Install.wim and boot.wim from C:\DP\SourceDVD\sources to this dvd\sources

image

Save ISO.

Advertisements
  1. Leave a comment

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

%d bloggers like this: