«

»

Print this Post

Use SP Cleanup Tool to Pare Down Winsxs folder, Reduce Windows Footprint

If your Windows 7 install has been around long enough, it will pick up various bits and pieces of leftover install information. The Windows Deployment Image Servicing and Management (DISM) tool includes a plethora of command line options that work on a running operating system (in addition to its more common use in setting up images for automated Windows deployments). For use on an active OS, however, your best reference is to start up cmd.exe using “Run as administrator” then type dism /online /? at the command line for a complete listing of commands and options.

In particular the command DISM /online /cleanup-image /spsuperseded is a handy one to know, because it gets rid of superseded install packages left in the wake of a service pack or other major update. It was designed as a post-SP-install cleanup tool, but I’ve run it on several systems that were built from the Windows SP1 slipstream install media, and it still found elements to remove from the installed image, as shown in this screen capture:

DISM removed two packages from my post-SP1 slipstreamed Windows 7 Ultimate installation

DISM removed two packages from my post-SP1 slipstreamed Windows 7 Ultimate installation

This recovered about 3 GB of disk space on my primary production machine — a welcome capability on the 120 GB SSD drive that I’m watching carefully to make sure it maintains at least 25% free disk space, to give the OS and applications room to breathe. On the other hand, if you run it on some systems, you’re more likely to see a result like this one, when DISM finds nothing to clean up on your behalf:

Nothing to clean up on my Lenovo T520 running Win7

Nothing to clean up on my Lenovo T520 running Win7

Still, it’s a useful post-SP-install trick to keep up your sleeve. Another SP for Windows 7 is pretty likely to appear around the same time that Microsoft ships Windows 8 (late October is when that should happen, say most pundits). If this doesn’t do your system any good now, it will surely come in handy after you install the next SP!

About the author

Ed Tittel

Ed Tittel has spent over 30 years in the computing industry. He’s worked as a software developer and manager, a networking consultant, a trainer and course developer, and a technical evangelist. He’s worked for companies that include Burroughs, Schlumberger, Excelan, Novell, IBM/Tivoli and NetQOS (now part of CA). He also ran a content factory named LANWrights from 1994-2004, and produced 50-plus computer trade books yearly, on average. By 1994 Ed had worked on a dozen books and written over one hundred articles. That’s why he took the plunge when Novell closed its Austin, TX, offices to go out on his own. Over the next decade he would contribute to 100-plus books, start his own company, create the Exam Cram series of IT Certification books, and dig deeply into content development and delivery for various publishers and corporations. Ed has published with Academic Press, Addison-Wesley, Charles River Press, Course Technology, IDG Books, Pearson, Sybex, and Wiley. He has also written for the following corporations: Ciena, Cisco, Fortinet, HP, Microsoft, Novell, and Symantec, among others. Ed’s areas of technical interest include: markup languages; information security; Windows operating systems; and Web development tools and technologies. Ed currently blogs for IT Career JumpStart, Windows Enterprise Desktop, and Ed Tittel’s IT Certification Success. He also writes regularly for Websites that include InformIT.com, ReadWriteWeb.com, SearchWinIT.com, and others. Ed works occasionally as an expert witness on Web development technologies and markup languages, too. Follow Ed on Google Plus or visit his blogs to learn more about current work and activity.

Permanent link to this article: http://www.edtittel.com/win7view/tips/use-sp-cleanup-tool-to-pare-down-winsxs-folder-reduce-windows-footprint.html