Safely Delete Files From WINSXS
Share
We started to run out of disk space on one of our production Windows Enterprise servers. This usually isn’t a huge deal with virtual machines, however this was on the c drive. Yes, I know those can be expanded too, however I wanted to do a little investigating before I just started dumping disk space to it.
I found that there were over 12 GB taken up by the c:\windows\winsxs directory. I did some checking around the internet and found a blog post (Clean up Winsxs on Windows 2008 R2 after SP1 install) that provided me with a way to cleanup the WINSXS directory in a way that was supported by Microsoft:
DISM.exe /online /Cleanup-Image /spsuperseded
Now, it didn’t totally clear out the directory, but it did reduced it down to only 5 GB.
Author
Stewart Schatz
More Stories
How to Print a Directory Structure Using PowerShell: Step-by-Step Guide
If you need to print out the directory structure and list the files within, this PowerShell script will help you...
Quick Tip: Determine Active Directory Account Status From The Windows Commandline
Use the following command to Determine Active Directory Account Status from the Windows Commandline without Powershell or any special software....
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
How To Test A SQL Server Connection
There is an easy way to test your SQL Server connection when running Windows without any special software. I found...
4 Lines To Export Outlook Rules To Excel/CSV Using PowerShell
I used to use a ton of Outlook Rules to organize the thousands of emails that I receive each day....
Get The Size & Record Count Of All Tables In A SQL Server Database
Use the SQL query below to display the size and record count of all tables in an SQL Server database....
Average Rating