<?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>disk space Archives - WardNet</title>
	<atom:link href="https://www.wardnet.co.uk/tag/disk-space/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wardnet.co.uk/tag/disk-space/</link>
	<description>Infrastructure, ERP and General Technology Blog</description>
	<lastBuildDate>Sat, 09 May 2020 15:59:25 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2026/01/wp-1767387074640.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>disk space Archives - WardNet</title>
	<link>https://www.wardnet.co.uk/tag/disk-space/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">63479081</site>	<item>
		<title>Tip of the Week 4 &#8211; DISM Cleanups</title>
		<link>https://www.wardnet.co.uk/tip-of-the-week-4-dism-cleanups/</link>
		
		<dc:creator><![CDATA[Jonathan Ward]]></dc:creator>
		<pubDate>Mon, 29 Jan 2018 10:00:35 +0000</pubDate>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[disk space]]></category>
		<category><![CDATA[DISM]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Windows Updates]]></category>
		<guid isPermaLink="false">https://www.wardnet.co.uk/?p=498</guid>

					<description><![CDATA[<p>In the last post I covered DISM for the purpose of changing/upgrading the version of Windows, and we found that</p>
<p><a href="https://www.wardnet.co.uk/tip-of-the-week-4-dism-cleanups/">Tip of the Week 4 &#8211; DISM Cleanups</a></p>
]]></description>
										<content:encoded><![CDATA[<p>In the last post I covered DISM for the purpose of changing/upgrading the version of Windows, and we found that the DISM tool has existed since 2008, however in 2012R2 they added much improved, usable functionality. Did you know DISM is also responsible for things such as Windows updates?</p>
<p>Under the hood DISM is the tooling being used to install and maintain those wonderful Windows Updates you get every month on Patch Tuesday (is that still a thing?) Which also means we can use the toolset to also tidy up afterwards. Remember Disk Clean up (cleanmgr)? Well it&#8217;s a nicer CLI version of the Updates clean-up in there.</p>
<p>There are 3 levels of update clean up via DISM</p>
<ul>
<li>Component Clean up &#8211; this cleans up updated components i.e. removing the packages used to install the updates</li>
<li>Reset Base &#8211; same as above, but means all deletes all superseded versions of every component in the component store, meaning you won&#8217;t be able to uninstall service packs/updates applied before this point in time</li>
<li>
<div>SPSuperseded &#8211; removes all backup components needed to uninstall the service pack, also you cannot remove the service pack anymore after using this command.</div>
</li>
</ul>
<p>In short doing 2 and 3 will free up more space but makes rolling back very difficult, option 1 is a nice way to keep the system tidy:</p>
<p>Example on Windows Server 2012R2</p>
<ul>
<li>
<div><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2018/01/012818_1817_TipoftheWee1.png?w=810&#038;ssl=1" alt=""></div>
<p>Disk is at 37.1GB free after being fully updated and having key applications installed</li>
<li>
<div><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2018/01/012818_1817_TipoftheWee2.png?w=810&#038;ssl=1" alt=""></div>
<p>Component cleanup is run and takes quite a while… (I had to go out and check 3 hours later, suspect it took ~1 hour)</li>
<li>
<div><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/www.wardnet.co.uk/wp-content/uploads/2018/01/012818_1817_TipoftheWee3.png?w=810&#038;ssl=1" alt=""></div>
<p>Following the cleanup run we can see around 7GB has been freed up on the system</li>
</ul>
<p>From this quick demonstration above it&#8217;s clear to see that significant disk space is used up by irrelevant, outdated files. The only reason to keep these is if you want to remove an update and reapply later, but surely not all 7GB worth…</p>
<p>I&#8217;ve started using the dism cleanup commands during my build process, so that before I start using a server in anger, I get it to as clean a state as possible, fully updated but tidy!</p>
<p>The full commands for DISM cleanup are:</p>
<ul>
<li><span style="font-family: Consolas;">dism /online /Cleanup-Image /StartComponentCleanup<br />
</span></li>
<li><span style="font-family: Consolas;">dism /online /Cleanup-Image /StartComponentCleanup /ResetBase<br />
</span></li>
<li><span style="font-family: Consolas;">dism /online /Cleanup-Image /SPSuperseded<br />
</span></li>
</ul>
<p><a href="https://www.wardnet.co.uk/tip-of-the-week-4-dism-cleanups/">Tip of the Week 4 &#8211; DISM Cleanups</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">498</post-id>	</item>
	</channel>
</rss>
