Install the Windows 8.1 Update for OEMs
Updated: April 15, 2014
Applies To: Windows 8.1, Windows Server 2012 R2
OEMs can update their existing Windows 8.1 and Windows Server 2012 R2 RTM images to include Windows 8.1 Update by installing the MSU files. Windows 8.1 Update is available to OEMs as both a full build and as standalone MSU files.
To do this, add the Microsoft Updates: KB2919355 and KB2919442 to your images. These update files include a rollup of all of the updates released between Windows 8.1 RTM and Windows 8.1 Update.
You can update Windows Server 2012 R2 images as well as Windows 8.1. In the instructions below, change instances of Windows 8.1 to Windows Server 2012 R2.
|Note: In this release, you cannot add all of the Windows 8.1 Update packages during Windows Setup by using an answer file. The servicing stack must be updated before you can apply the Windows 8.1 Update.To work around this issue, install the updates to an offline image by using DISM before running an unattended setup.|
Start with your installation of Windows 8.1 RTM. This can be a base language image or an image with multiple languages.
Install one or more Windows 8.1 RTM languages to the image, if necessary.
For more info about adding language packs, see Add Language Pack Updates for the Windows 8.1 Update.
Click Start, and type deployment. Right-click Deployment and Imaging Tools Environment and then select Run as administrator.
Create a mount directory for your Windows image (install.wim), and then mount the image.
md C:\mount\Windows Dism /Mount-Image /ImageFile:"C:\Images\install.wim" /Index:1 /MountDir:C:\mount\Windows
Update your Windows images with the Windows 8.1 Update .MSU files, in this order:
Where <arch> is x86, x64, or arm. For example,
Dism /Add-Package /PackagePath:C:\MSU\Windows8.1-KB2919442-x64.msu /Image:C:\mount\Windows /LogPath:AddPackage.log Dism /Add-Package /PackagePath:C:\MSU\Windows8.1-KB2919355-x64.msu /Image:C:\mount\Windows /LogPath:AddPackage.log
Note Known limitation: You can't add these files all at once using an Unattend file. These packages must be added one at a time.
Create a mount directory for your Windows RE image (winre.wim), and then mount the image.
Md C:\mount\WinRE Dism /Mount-Image /ImageFile:"C:\mount\Windows\Windows\System32\Recovery\winre.wim" /Index:1 /MountDir:C:\mount\WinRE
Update your Windows RE images with the Windows 8.1 Update .MSU files. These are the same MSU files used to update the Windows images, and they should be updated in the same order.
Dism /Add-Package /PackagePath:C:\MSU\Windows8.1-KB2919442-x64.msu /Image:C:\mount\WinRE /LogPath:AddPackage.log Dism /Add-Package /PackagePath:C:\MSU\Windows8.1-KB2919355-x64.msu /Image:C:\mount\WinRE /LogPath:AddPackage.log
Recommended: Clean up the Windows RE image. Use
/StartComponentCleanupto clean up the superseded components and reduce the size of the component store. Use
/ResetBaseto reset the base of superseded components, which can further reduce the component store size. To see the file size reduction, you'll need to either recapture or export the image.
Dism /Cleanup-Image /Image:C:\mount\WinRE /StartComponentCleanup /ResetBase
Note You won't be able to clean up your Windows image until after you've booted it.
Unmount the Windows RE image.
Dism /Unmount-Image /MountDir:C:\mount\WinRE /Commit
Recommended: Export the image. After cleaning the image with
Dism /Cleanup-Image, you'll need to either recapture the image or export it into a new file to see the reduction in file size.
Dism /Export-Image /SourceImageFile:C:\mount\Windows\Windows\System32\Recovery\winre.wim /SourceIndex:1 /DestinationImageFile:C:\Images\winre_updated.wim
Replace the winre.wim file in the Windows image with the newly-exported image.
Del C:\mount\Windows\Windows\System32\Recovery\winre.wim copy C:\Images\winre_updated.wim C:\mount\Windows\Windows\System32\Recovery\winre.wim
Recommended: keep a copy of this updated Windows RE image file, because this file can be useful for other deployment methods, for example, creating quick versions of WIMBoot images.
Unmount the Windows image.
Dism /Unmount-Image /MountDir:C:\mount\Windows /Commit
On your reference PC, boot to Windows PE 5.1, apply your Windows image, and boot the PC. For more info, see Samples: Applying Windows, System, and Recovery Partitions by using a Deployment Script.
Press CTRL+SHIFT+F3 at the OOBE screens to enter audit mode.
Recommended: Clean up the Windows image. Open a command prompt window, and type this:
Dism /Cleanup-Image /Online /StartComponentCleanup /ResetBase
Use Sysprep to generalize and shut down the PC.
C:\Windows\System32\Sysprep\sysprep /generalize /shutdown /oobe
Boot the PC to Windows PE 5.1. If the PC starts rebooting to Windows, you'll need to let it finish booting and then use Sysprep to generalize and shut down the PC again.
Recommended: Create a temporary scratch directory for DISM on a physical drive, rather than the default Windows PE virtual drive, to avoid issues related to short file names. To prevent capturing the DISM logs in your image, choose a location that’s in your DISM Exclusion list, for example, inside C:\Recycler. For more info, see DISM Configuration List and WimScript.ini Files.
Recapture the Windows image. This captures the applied updates and removes any files that were marked as superseded during DISM /Cleanup-Image. Save the file to a location on a USB drive or a network (example: N:\Images), and give the image a name (example: "Enterprise_x64 with 8.1 Updates").
DISM /Capture-Image /ImageFile:"N:\Images\install_updated.wim" /CaptureDir:C: /Name: "Enterprise_x64 with 8.1 Updates" /ScratchDir:C:\Recycler\Scratch
If you add language packs after installing Windows 8.1 Update, you'll need to add the language resources for Windows 8.1 Update as well. Otherwise, the Windows user experience might not be correctly localized, and users will be prompted to download the language resources for Windows 8.1 Update from Windows Update.
To add the language resources, you can do either of the following:
Add the Windows 8.1 RTM language pack and then re-apply the update packages, either offline or online. If your PC has limited hard drive space, you might have to add the packages offline and perform all cleanup steps, as described earlier on this page.
- or -
To save time, OEMs can add the Windows 8.1 RTM language pack, and then install the corresponding language pack update for Windows 8.1 Update. The language pack updates include only the language-specific resources for Windows 8.1 Update. These language pack updates are significantly faster to install than the full MSU update package. You can add these language pack updates using either an online or an offline update. For more info, see Add Language Pack Updates for the Windows 8.1 Update.
- Add the Windows 8.1 RTM language pack and then re-apply the update packages, either offline or online. If your PC has limited hard drive space, you might have to add the packages offline and perform all cleanup steps, as described earlier on this page.