<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>The Windows Deployment Guy</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/astoica/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/astoica/feed.xml</link>
    <description>Deployment related problems and solutions</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:44:35 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Windows 7 refreshed media creation</title>
      <link>https://docs.microsoft.com/archive/blogs/astoica/windows-7-refreshed-media-creation</link>
      <pubDate>Tue, 03 Jan 2017 11:10:09 GMT</pubDate>
      <dc:creator><![CDATA[Andrei Stoica]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/astoica/?p=25</guid>
      <description><![CDATA[The fastest way to patch a Windows 7/Server 2008 R2 machine is to take advantage of the Convenience...]]></description>
      <content:encoded><![CDATA[The fastest way to patch a Windows 7/Server 2008 R2 machine is to take advantage of the Convenience Update Rollup from April 2016 (KB3125574). The Conv. UR updates a lot of components and to ensure that that happens without any servicing problems, it has as a prerequisite the Servicing Stack Update from April 2015 (KB3020369). To install most of the other patches in between April 2016 and October 2016 we will include the following updates:
<ol>
 	<li>KB3020369 (April 2015 Servicing Stack Update)</li>
 	<li>KB3125574 (April 2016 Convenience Update Rollup)</li>
 	<li>KB3177467 (September 2016 SSU)</li>
 	<li>KB3172605 (July 2016 Functional Update Rollup, 7C* package)</li>
 	<li>KB3179573 (August 2016 FUR, 8C* package)</li>
 	<li>KB2841134 (Internet Explorer 11, Optional)</li>
 	<li>KB3185330 (October 2016 Monthly Quality Rollup, 10B' package [contains September 2016 FUR, 9C* package])</li>
</ol>
*3rd Tuesday package of that month.

Download all the packages from the Microsoft Update Catalog (now <a href="https://blogs.technet.microsoft.com/windowsitpro/2016/10/18/microsoft-update-catalog-site-updated/">updated</a> to work on all browsers) to a folder:

<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3020369">https://www.catalog.update.microsoft.com/Search.aspx?q=3020369</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3125574"> https://www.catalog.update.microsoft.com/Search.aspx?q=3125574</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3177467"> https://www.catalog.update.microsoft.com/Search.aspx?q=3177467</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3172605"> https://www.catalog.update.microsoft.com/Search.aspx?q=3172605</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3179573"> https://www.catalog.update.microsoft.com/Search.aspx?q=3179573</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=2841134"> https://www.catalog.update.microsoft.com/Search.aspx?q=2841134</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3185330"> https://www.catalog.update.microsoft.com/Search.aspx?q=3185330</a>

Expand the .MSU files to extract the .CAB file which will be used with DISM:

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image15.png"><img class="alignnone wp-image-35 size-full" alt="image1" src="https://msdnshared.blob.core.windows.net/media/2017/01/image15.png" width="1478" height="411" /></a>

Command used:
expand -f:*Windows*.cab C:\files\Window7MediaRefresh\*.msu C:\files\Window7MediaRefresh\CABs (thank you <cite class="fn"><a href="https://social.technet.microsoft.com/profile/abbodi1406" class="url">abbodi1406</a></cite>)

Afterwards we should have the following:

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image23.png"><img class="alignnone wp-image-45 size-full" alt="image2" src="https://msdnshared.blob.core.windows.net/media/2017/01/image23.png" width="580" height="161" /></a>

For this guide we will use the install.wim file from a Windows 7 Enterprise x64 SP1 Media:

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image31.png"><img class="alignnone wp-image-55 size-full" alt="image3" src="https://msdnshared.blob.core.windows.net/media/2017/01/image31.png" width="728" height="236" /></a>

Mount the image as described in the offline servicing article below:

<strong>Add or Remove Packages Offline Using DISM</strong>
<a href="https://technet.microsoft.com/en-us/library/hh824838.aspx">https://technet.microsoft.com/en-us/library/hh824838.aspx</a>

Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows 7 ENTERPRISE" /MountDir:C:\test\offline

And now we can start adding the first package, the KB3020369 SSU:

Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\files\Window7MediaRefresh\CABs\Windows6.1-KB3020369-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image41.png"><img class="alignnone wp-image-65 size-full" alt="image4" src="https://msdnshared.blob.core.windows.net/media/2017/01/image41.png" width="1175" height="148" /></a>

We can check the installation state using the command below:
Dism /Image:C:\test\offline /Get-Packages

It is in a "Install Pending" state:
Package Identity : Package_for_KB3020369~31bf3856ad364e35~amd64~~6.1.1.1
State : <span style="background-color: #00ff00">Install Pending</span>
Release Type : Update
Install Time : 11/4/2016 9:11 AM

The next update to install is the Convenience Update Rollup KB3125574:

Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\files\Window7MediaRefresh\CABs\Windows6.1-KB3125574-v4-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image51.png"><img class="alignnone wp-image-75 size-full" alt="image5" src="https://msdnshared.blob.core.windows.net/media/2017/01/image51.png" width="1200" height="146" /></a>

Package Identity : Package_for_KB3125574~31bf3856ad364e35~amd64~~6.1.4.4
State : <span style="background-color: #00ff00">Install Pending</span>
Release Type : Update
Install Time : 11/4/2016 10:33 AM

We cannot continue to install updates offline, because of the DISM limitation below:

<strong>Limitations</strong>
<ul>
 	<li>When you are installing a package in an offline image, the package state is “install pending” because of pending online actions. In other words, the package will be installed when the image is booted and the online actions are processed. If subsequent actions are requested, they cannot be processed until the previous pending online action is completed. You can use the <strong>/PreventPending</strong> option when you add a package with <strong>/AddPackage</strong> to skip the installation of a package when there are pending online actions.</li>
</ul>
<a href="https://technet.microsoft.com/en-us/library/hh825265.aspx">https://technet.microsoft.com/en-us/library/hh825265.aspx</a>

Commit the changes with the command below to seal the image:
Dism /Unmount-Image /MountDir:C:\test\offline /Commit

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image61.png"><img class="alignnone wp-image-85 size-full" alt="image6" src="https://msdnshared.blob.core.windows.net/media/2017/01/image61.png" width="674" height="148" /></a>

Now we need to install a Windows 7 VM/PC with this image to finish the outstanding servicing actions and install the other updates. Do this either by <a href="https://technet.microsoft.com/en-us/library/dd744531(v=ws.10).aspx">hand </a>or using your favorite deployment tool.

After the image is installed we should see the following (SP1 + KB3020369 + KB3125574 only):

C:\Windows\system32&gt;Dism /Online /Get-Packages

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: <span style="background-color: #00ff00">6.1.7601.23403</span>

Packages listing:
Package Identity : Package_for_KB3020369~31bf3856ad364e35~amd64~~6.1.1.1
State : <span style="background-color: #00ff00">Installed</span>
Release Type : Update
Install Time : 11/4/2016 12:29 AM

Package Identity : Package_for_KB3125574~31bf3856ad364e35~amd64~~6.1.4.4
State : <span style="background-color: #00ff00">Installed</span>
Release Type : Update
Install Time : 11/4/2016 12:29 AM

Package Identity : Package_for_KB976902~31bf3856ad364e35~amd64~~6.1.1.17514
State : Installed
Release Type : Update
Install Time : 11/21/2010 3:01 AM

Continue to install updates 3-5 using the DISM commands below:

Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3177467-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image71.png"><img class="alignnone wp-image-26 size-full" alt="image7" src="https://msdnshared.blob.core.windows.net/media/2017/01/image71.png" width="719" height="151" /></a>

Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3172605-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image81.png"><img class="alignnone wp-image-95 size-full" alt="image8" src="https://msdnshared.blob.core.windows.net/media/2017/01/image81.png" width="719" height="153" /></a>

Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3179573-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image91.png"><img class="alignnone wp-image-105 size-full" alt="image9" src="https://msdnshared.blob.core.windows.net/media/2017/01/image91.png" width="720" height="151" /></a>

&nbsp;

Step 6, which is installing IE11, is optional, in case you have business critical applications that are dependent on an older Internet Explorer version. The security-only, monthly rollup, and preview rollup will not install or upgrade to these versions of Internet Explorer if they are not already present, so we will install IE11 next, before we apply the monthly rollup.

This will be the IE version installed, if we do not upgrade it:

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image101.png"><img class="alignnone wp-image-27 size-full" alt="image10" src="https://msdnshared.blob.core.windows.net/media/2017/01/image101.png" width="384" height="201" /></a>

The last update to install is KB3185330, at the moment of writing this guide, in the future just replace it with the latest monthly/preview rollup, found on the page below:

<strong>Windows 7 SP1 and Windows Server 2008 R2 SP1 update history</strong>
<a href="https://support.microsoft.com/en-us/help/22801/windows-7-and-windows-server-2008-r2-update-history">https://support.microsoft.com/en-us/help/22801/windows-7-and-windows-server-2008-r2-update-history</a>

Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3185330-x64.cab

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image111.png"><img class="alignnone wp-image-115 size-full" alt="image11" src="https://msdnshared.blob.core.windows.net/media/2017/01/image111.png" width="650" height="175" /></a>

Now we can search online for the remainder of the updates or just <a href="https://technet.microsoft.com/en-us/library/dd744320(v=ws.10).aspx">capture the image after generalizing it</a>, if we want to finish as fast as possible.

Online search results after the above updates (34/39 optional updates are language packs):

<a href="https://msdnshared.blob.core.windows.net/media/2017/01/image121.png"><img class="alignnone wp-image-36 size-full" alt="image12" src="https://msdnshared.blob.core.windows.net/media/2017/01/image121.png" width="566" height="187" /></a>

TL;DR version:

Download the updates:
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3020369">https://www.catalog.update.microsoft.com/Search.aspx?q=3020369</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3125574">https://www.catalog.update.microsoft.com/Search.aspx?q=3125574</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3177467">https://www.catalog.update.microsoft.com/Search.aspx?q=3177467</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3172605">https://www.catalog.update.microsoft.com/Search.aspx?q=3172605</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3179573">https://www.catalog.update.microsoft.com/Search.aspx?q=3179573</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=2841134">https://www.catalog.update.microsoft.com/Search.aspx?q=2841134</a>
<a href="https://www.catalog.update.microsoft.com/Search.aspx?q=3185330">https://www.catalog.update.microsoft.com/Search.aspx?q=3185330</a>

Extract CAB files from MSU:
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3020369-x64_5393066469758e619f21731fc31ff2d109595445.msu C:\files\Window7MediaRefresh\CABs
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3125574-v4-x64_2dafb1d203c8964239af3048b5dd4b1264cd93b9.msu C:\files\Window7MediaRefresh\CABs
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3177467-x64_42467e48b4cfeb44112d819f50b0557d4f9bbb2f.msu C:\files\Window7MediaRefresh\CABs
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3172605-x64_2bb9bc55f347eee34b1454b50c436eb6fd9301fc.msu C:\files\Window7MediaRefresh\CABs
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3179573-x64_0ec541490b3f7b02e41f26cb2c444cbd9e13df4d.msu C:\files\Window7MediaRefresh\CABs
expand -f:* C:\files\Window7MediaRefresh\AMD64-all-windows6.1-kb3185330-x64_8738d0ef3718b8b05659454cff898e8c4f0433d7.msu C:\files\Window7MediaRefresh\CABs

Mount the image:
Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows 7 ENTERPRISE" /MountDir:C:\test\offline

Install the first two updates offline:
Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\files\Window7MediaRefresh\CABs\Windows6.1-KB3020369-x64.cab
Dism /Image:C:\test\offline /Add-Package /PackagePath:C:\files\Window7MediaRefresh\CABs\Windows6.1-KB3125574-v4-x64.cab

Unmount and commit the changes to the install.wim file:
Dism /Unmount-Image /MountDir:C:\test\offline /Commit

Install a reference machine with the above install.wim file and continue to install the updates:
Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3177467-x64.cab
Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3172605-x64.cab
Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3179573-x64.cab
Dism /Online /Add-Package /PackagePath:C:\temp\Windows6.1-KB3185330-x64.cab

Search online to install the remainder of the updates.

Sysprep the newly patched machine and capture an updated wim file.

&nbsp;

If you have any questions or feedback, please use the comment section.

Thank you and see you next time!

Andrei Stoica, Windows Deployment Engineer]]></content:encoded>
    </item>
  </channel>
</rss>