• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

danblee.com

Tutorials & Knowledge Base Articles for System Administrators who wear many, many hats.

  • Home
  • About
  • Ask Me
  • DBLHost.com

Reducing the size of the winsxs folder

February 9, 2012 by Dan B. Lee Leave a Comment

EDIT: This command only works with Windows Server 2008 R2 SP1. DISM is available to use, but some of the switches and functionality isn’t available until SP1.

We generally keep the OS partition of our VMs as small as possible. Windows 2008 is great in that we can always increase the size of a drive later on, need be. When our monitors alerted us about low disk space on our vCenter Server I was a little confused. The vCenter server doesn’t do much on a day to day basis and really doesn’t see a increase or decrease is space.

As it turns outs, the winsxs folder was growing. The winsxs folder (located at C:\Windows\winsxs holds temp backup files for Windows Updates. You’ll find this folder in most, if not all, versions of Windows – from Server 2008 to Vista and 7. When I discovered the folder, it had grown to about 9GB.

You should not delete this folder. Its existence is important. That said, the contents in the folder may be important later on. This isn’t like deleting temporary internet files. Instead, take a look at the command below. Open up a command prompt as an administrator and run the command below. It will clean up your service pack updates and reduce the folder size considerably.

dism /online /cleanup-image /spsuperseded

Running this script takes about two minutes. When I ran this on a 9GB folder, my folder size dropped to just above 6GB. That’s a pretty darn good cleanup, comparatively.

DISM (Deployment Image Servicing & Management) has a number of different maintenance features for your images. The cleanup that we did is just one of the services. Take a look at the rest of the DISM tools to see if it can help you elsewhere.

Cheers

 

 

Filed Under: Windows Server, Windows Server 2008 R2 Tagged With: command-line utility, DISM, winsxs folder

Primary Sidebar

Categories

  • Active Directory
    • Group Policy
  • Adobe Photoshop
  • Browsers
    • Chrome
  • Cloud Based Technology
    • Citrix XenApp
  • ConnectWise
    • LabTech
  • Dell
  • Internet Service Providers (ISPs)
  • iPhone
  • Linux
    • CentOS
    • OpenVPN
    • SaltStack
    • Ubuntu
  • Microsoft Office
    • Lync
    • Microsoft Excel
    • Microsoft Outlook
    • Microsoft Word
  • Microsoft Windows
    • Active Directory
    • PowerShell
    • Windows 7
    • Windows 8 Preview & Release
  • Networks
  • News
  • Off Topic
  • Office 365
  • Peripherals
    • Monitors
  • Printers
    • Local Printers
    • Network Printers
  • Programming
    • Python
  • Riverbed
  • Security
  • Sharepoint
  • Social Media
  • Splunk
  • Storage
  • Switching & Routing
    • Cisco
    • Fortinet
  • Technology Culture
    • Opinion
  • Uncategorized
  • Virtualization
    • VEEAM
    • VMware
  • WAMP
  • Web Hosting
    • WHMCS
  • Website Design
  • Windows Server
    • Exchange 2003
    • Exchange 2010
    • Exchange 2013
    • Microsoft SQL
    • Windows Server 2003
    • Windows Server 2008 R2
    • Windows Server 2012
  • WordPress

Footer

Recent Activity

  • pings on Xerox Phaser 3635MFP Default Admin Username and Password
  • Xerox Phaser 3635MFP Default Admin Username and Password — danblee.com on About Dan B. Lee
  • Estudio Login | LOGINEGG on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | LOGINSPENT on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | CHARTLOGIN on Toshiba E-Studio Default Administrator Username and Password

Dan Lee

Dan B. Lee works at SyApps, LLC., a Managed Hosting Solutions Firm, as a Senior Network Engineer. Dan has a decade of IT experience and specializes in a number of different disciplines including Virtualization, Web Site Hosting and Design, Network Security, Data Center Architecture, Local and Remote Server Hosting, and Backup & DRS Solutions. Read More…

Links

  • Home
  • About Dan B. Lee
  • Ask Me
  • Privacy Policy

Copyright © 2021 · Genesis Child Theme on Genesis Framework · WordPress · Log in