<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WIM | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/wim/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:20:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>WIM | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>How To Mount and Update Windows Image Files (WIM)</title>
		<link>https://www.kjctech.net/how-to-mount-and-update-windows-image-files-wim/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-mount-and-update-windows-image-files-wim</link>
					<comments>https://www.kjctech.net/how-to-mount-and-update-windows-image-files-wim/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Sun, 27 May 2018 06:28:19 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[DISM]]></category>
		<category><![CDATA[WIM]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=3939</guid>

					<description><![CDATA[<p>I have an imaging system that uses the command line imagex to build and apply images to install new computers. It&#8217;s relatively easy to set up and works quite efficiently. Because it&#8217;s using Microsoft&#8217;s own Windows Image Files (WIM) format, it&#8217;s also easy to mount to not only read but update files in the image file. You can even install [&#8230;]</p>
The post <a href="https://www.kjctech.net/how-to-mount-and-update-windows-image-files-wim/">How To Mount and Update Windows Image Files (WIM)</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>I have <a href="https://www.nextofwindows.com/how-to-build-your-own-image-system-with-imagex" target="_blank" rel="noreferrer noopener">an imaging system</a> that uses the command line <strong>imagex</strong> to build and apply images to install new computers. It&#8217;s relatively easy to set up and works quite efficiently. Because it&#8217;s using Microsoft&#8217;s own Windows Image Files (WIM) format, it&#8217;s also easy to mount to not only read but update files in the image file. You can even install additional drivers to avoid installing them after you apply the image to a new computer that comes with new hardware.</p>



<h2 class="wp-block-heading">To read a WIM image file content</h2>



<p>If you just need to read the content of a WIM file, you can simply use a tool called <a href="https://www.7-zip.org/" target="_blank" rel="noreferrer noopener">7-zip</a>. Right-click the WIM file, choose 7-Zip from the context menu and choose <strong>Open Archive</strong>.</p>



<p>A new File Explorer window opens up where you can navigate through the folders and files contained inside the WIM file. You will be able to only read but not make any changes to it though.</p>



<h2 class="wp-block-heading">To mount a WIM file</h2>



<p>If you need to make change to a WIM file, you will need to mount it properly on Windows using DISM, a command line that enumerates, installs, uninstalls, configures, and updates features and packages in Windows images.</p>



<p>Open an elevated command prompt window, and run the following command:</p>



<pre class="wp-block-preformatted">DISM /Mount-Wim /WimFile:"filename.wim" /index:1 /MountDir:"c:\temp"</pre>



<p>Make sure the mounted directory is empty and has nothing in it, as the image will be mounted to that folder that you can browse through with File Explorer.</p>



<figure class="wp-block-image"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="640" height="207" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=640%2C207&#038;ssl=1" alt="Use DISM to mount a WIM file" class="wp-image-3941" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?w=774&amp;ssl=1 774w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=250%2C81&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=450%2C145&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=768%2C248&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=600%2C194&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=700%2C226&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=520%2C168&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=360%2C116&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-3.png?resize=100%2C32&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<h2 class="wp-block-heading">To add a driver to a mounted WIM image</h2>



<p>Based on the type of driver you have, you can add a driver from a specific driver INF file, like:</p>



<pre class="wp-block-preformatted">DISM /Image:"c:\temp" /Add-Driver /Driver:"driver.inf"</pre>



<p>Or from a folder:</p>



<pre class="wp-block-preformatted">DISM /Image:"c:\temp" /Add-Driver /Driver:"video-driver-folder"</pre>



<p>Or add a bunch of drivers from a folder and all its sub-folders:</p>



<pre class="wp-block-preformatted">DISM /Image:"c:\temp" /Add-Driver /Driver:"driver-folder" /recurse<br></pre>



<figure class="wp-block-image"><img data-recalc-dims="1" decoding="async" width="640" height="360" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=640%2C360&#038;ssl=1" alt="Use DISM to add a new driver to a mounted WIM image" class="wp-image-3942" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?w=977&amp;ssl=1 977w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=250%2C141&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=450%2C253&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=600%2C338&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=700%2C394&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=520%2C293&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=360%2C203&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-4.png?resize=100%2C56&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<h2 class="wp-block-heading">To apply Windows updates </h2>



<p>After the WIM image is mounted, using the following command to inject the updates to the image.</p>



<pre class="wp-block-preformatted">DISM /image:"c:\temp" /Add-Package /PackagePath:"C:\Updates\"</pre>



<h2 class="wp-block-heading">To unmount the WIM file</h2>



<p>Once you are done all the changes, you can unmount the WIM file with or without committing the changes to the file. Make sure you close File Explorer you use to browse through the image content to avoid any files being locked up during the unmounting process.</p>



<p>To discard the change:</p>



<pre class="wp-block-preformatted">DISM /unmount-Wim /MountDir:"c:\temp" /discard</pre>



<p>To commit the change:</p>



<pre class="wp-block-preformatted">DISM /unmount-wim /MountDir:"c:\temp" /commit</pre>



<figure class="wp-block-image"><img data-recalc-dims="1" decoding="async" width="640" height="275" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=640%2C275&#038;ssl=1" alt="Use DISM to unmount the WIM file" class="wp-image-3943" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?w=710&amp;ssl=1 710w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=250%2C107&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=450%2C193&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=600%2C258&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=700%2C301&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=520%2C223&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=360%2C155&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2018/05/image-5.png?resize=100%2C43&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p></p>The post <a href="https://www.kjctech.net/how-to-mount-and-update-windows-image-files-wim/">How To Mount and Update Windows Image Files (WIM)</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/how-to-mount-and-update-windows-image-files-wim/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3939</post-id>	</item>
	</channel>
</rss>
