How to reduce the size of WINSXS?

bbinnard

New member
My original installation of Win7-64, along with all my application software, took about 22GB on my 64GB SSD. Now, after about a year's use, my Windows folder itself is taking up 21.1 GB and my SSD is nearly 50% full.

The WINSXS folder is the single largest consumer of space on my system, and it continues to get larger and larger. It is now at 7GB.

Does anyone know of a way to reduce the size of WINSXS and still retain the ability to perform Restore Points?

PS: Yes, I have already done the post-SP1 cleanup routine. That did help - it gave back about 3 GB, but all of that (and more) has been re-consumed.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Win7-64
CPU
Intel i7-3770S
Motherboard
ASUS P8Z77-M
Memory
16GB
Graphics Card(s)
nVidia GT630
Sound Card
onboard
Monitor(s) Displays
dual
Screen Resolution
1920x1200 (primary) 1050x1680 (secondary)
Hard Drives
128GB SSD (boot)
64GB SSD (Temp/My Documents)
500GB (photos/videos)
1TB (rendered video, backups)
PSU
650W
Case
Thermaltake A30
Cooling
Thermaltake
Keyboard
Logitech Lighted
Mouse
Kensington Expert Mouse (trackball)
Internet Speed
FIOS 35/35
Antivirus
MS Security Essentials
Browser
Chrome (beta)
WinSXS isnt just for restore points. It keeps copies of every version of every driver you have installed, so that if one fails on your system SFC can restore it. It also has junction points system wide. IMHO if you edit, or delete, all or part of it, it will cause trouble.

The best way to keep SXS to a minimum is to not install tons of things.
 

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv-7 1005 Tx
OS
Win 8 Release candidate 8400
CPU
[email protected]
Memory
4 gigs
Graphics Card(s)
Nvidia 9600M
Sound Card
HD built-in
Monitor(s) Displays
17" Wxga
Screen Resolution
1440x900
Cooling
none
Internet Speed
45Mb down 5Mb up
Zigzag is absolutely right. Don't mess with winsxs - unless you want to get into deep trouble. You may gain some additional space by deleting the hiberfile - if you do not use hibernation. The command is

powercfg -h off
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
Thanks W

Also if you are really tight, and have 4 gigs of ram or more, you could reduce the size of the page file.
 

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv-7 1005 Tx
OS
Win 8 Release candidate 8400
CPU
[email protected]
Memory
4 gigs
Graphics Card(s)
Nvidia 9600M
Sound Card
HD built-in
Monitor(s) Displays
17" Wxga
Screen Resolution
1440x900
Cooling
none
Internet Speed
45Mb down 5Mb up
Right, I am already aware of, and doing, those things. My Hiberfile & Page file are relocated onto a 500GB HDD and Win7 is very happy with them there. I am aware that there are lots of things in WINSXS besides restore points, and I typically keep only 2 or 3 restore points on my system anyway. Plus I have limited the space allowable for restore points to the minimum.

What galls me is just what you said - WINSXS keeps EVERY copy of EVERY driver etc. regardless of what you really need. I can certainly understand keeping 2 or maybe 3 versions of back-level stuff, but every one?

As far as not installing lots of things, well, I admit I do that a lot. I frequently install different pieces of software just to check them out and I typically end up deleting 95% of it all. And yes, I do use an uninstaller program that gets all the leftover bits from both 32 & 64 bit apps.

Seems to me it would be nice to be able to delete stuff from WINSXS that was more than, say 3 months old. If you haven't needed to go back to something in 3 months you most likely never will. So why should it lie around taking up space?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Win7-64
CPU
Intel i7-3770S
Motherboard
ASUS P8Z77-M
Memory
16GB
Graphics Card(s)
nVidia GT630
Sound Card
onboard
Monitor(s) Displays
dual
Screen Resolution
1920x1200 (primary) 1050x1680 (secondary)
Hard Drives
128GB SSD (boot)
64GB SSD (Temp/My Documents)
500GB (photos/videos)
1TB (rendered video, backups)
PSU
650W
Case
Thermaltake A30
Cooling
Thermaltake
Keyboard
Logitech Lighted
Mouse
Kensington Expert Mouse (trackball)
Internet Speed
FIOS 35/35
Antivirus
MS Security Essentials
Browser
Chrome (beta)
Seems to me it would be nice to be able to delete stuff from WINSXS that was more than, say 3 months old. If you haven't needed to go back to something in 3 months you most likely never will. So why should it lie around taking up space?
Yeah, that would be nice. But there are many things in life that would be nice yo have and we do not get them - LOL.
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
Right, I am already aware of, and doing, those things. My Hiberfile & Page file are relocated onto a 500GB HDD and Win7 is very happy with them there. I am aware that there are lots of things in WINSXS besides restore points, and I typically keep only 2 or 3 restore points on my system anyway. Plus I have limited the space allowable for restore points to the minimum.

What galls me is just what you said - WINSXS keeps EVERY copy of EVERY driver etc. regardless of what you really need. I can certainly understand keeping 2 or maybe 3 versions of back-level stuff, but every one?

As far as not installing lots of things, well, I admit I do that a lot. I frequently install different pieces of software just to check them out and I typically end up deleting 95% of it all. And yes, I do use an uninstaller program that gets all the leftover bits from both 32 & 64 bit apps.

Seems to me it would be nice to be able to delete stuff from WINSXS that was more than, say 3 months old. If you haven't needed to go back to something in 3 months you most likely never will. So why should it lie around taking up space?

They have to keep every version of every driver. Version X might work with application "Y" but App "Z" wont and needs version X+2. Thats why when you install lots of things your SXS grows.

I have had SXS folders of over 30 gigs (and thats 32 bit). BTW when you remove SOME software, the sxs entries are not removed.

My stock Win 7 ( and WIn 8) partition is now 50-75 Gigs.
 

My Computer

Computer Manufacturer/Model Number
HP Pavillion dv-7 1005 Tx
OS
Win 8 Release candidate 8400
CPU
[email protected]
Memory
4 gigs
Graphics Card(s)
Nvidia 9600M
Sound Card
HD built-in
Monitor(s) Displays
17" Wxga
Screen Resolution
1440x900
Cooling
none
Internet Speed
45Mb down 5Mb up
The WINSXS folder is a repository for symbolic links to the various copies of drivers and Dynamic link libraries and not for the files themselves. Due to the way that windows treats these links the size of the WINSXS folder displays the size of the files linked to and not the actual size of the link. If you check the size of the WINSXS folder, from outside windows, you will be surprised at how little space it actually uses.

There was actually a method devised at the start of use of WINSXS that would allow you to move the folder to a second drive, (useful for some OEM systems where the system drive was limited to 30 GB), but in real terms this is not needed.

The retention of unused DLLs and Drivers after an un-install, is not the fault of the WINSXS folder but rather the conservative way that Windows and developers treat unused DLL and Driver files. Many un-install routines err on the side of caution and do not remove a "Shared" files even when it is no longer required, "just in case"

As has been said by others, do not worry about the reported size of WINSXS and if you wish to reduce the overhead due to restore points, do this within the Operating system (the vssadmin command line), these are in any case stored in a hidden folder at the root of the drive and not the WINSXS folder.

Hope this clarifies things :)
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
Explorer claimed size of that folder is deceptive. Many of the entries are junctions to other places which take no space, but the overall size is the result of adding all the destinations of those junctions together.
Admittedly very confusing, all the same you should'n't mess with that folder, you'll get fed up with side by side errors.
 

My Computer

Computer Manufacturer/Model Number
DIY
OS
Windows 7 home premium x64
CPU
AMD FX-4100 AM3+ 3.6GHz 12MB Black Edition
Motherboard
Asus M5A97 Pro
Memory
Crsair vengeance 12Gb DDR3 1600MHz CL9
Graphics Card(s)
Asus GTX 560 1GB
Sound Card
Realtek onboard
Monitor(s) Displays
Hanns G 1680x1050 native
Hard Drives
OCZ 128Gb Petrol ssd
2x500 Gb Samsung
PSU
OCZ StealthXstream II 500W
Internet Speed
8Mb or better
Barman58:

Thanks for your detailed reply. I do understand about Symbolic Links/Junction Links and all that; in fact I have created several of them to move stuff off my SSD boot drive as a means of reducing writes to the SSD and to also free up space on it. (Junction Link Magic is a great utility for doing this.) And I have used VSSADMIN to limit the amount of space for Restore Points.

I also understand the fact that the reported size of WINSXS is not it's actual size. My concern has to do with the fact that my boot drive is a 64GB SSD and that the actual, physical layout of data on the SSD is controlled by the SSD firmware, and not by Win7. For reasons having to do with how SSD firmware works, and the way it relocates data without telling WIN7 about it, my perception is that SSD's need to be about 50% free to function effectively.

So when I see that my SSD drive is about 50% full I start to get concerned.

Perhaps your suggestion to check the status of my SSD from outside Windows is a good one. I wonder - if I booted off the WIN7 DVD and got to a DOS prompt to check the status of the SSD, would it say it is much less than 50% full? And even if it did, would this be an accurate report? Remember, only the SSD knows what data is on it and where it is; all any OS sees is what the SSD firmware is telling it.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built
OS
Win7-64
CPU
Intel i7-3770S
Motherboard
ASUS P8Z77-M
Memory
16GB
Graphics Card(s)
nVidia GT630
Sound Card
onboard
Monitor(s) Displays
dual
Screen Resolution
1920x1200 (primary) 1050x1680 (secondary)
Hard Drives
128GB SSD (boot)
64GB SSD (Temp/My Documents)
500GB (photos/videos)
1TB (rendered video, backups)
PSU
650W
Case
Thermaltake A30
Cooling
Thermaltake
Keyboard
Logitech Lighted
Mouse
Kensington Expert Mouse (trackball)
Internet Speed
FIOS 35/35
Antivirus
MS Security Essentials
Browser
Chrome (beta)
Birk, your 50% number is highly inflated. For some SSDs it is an advantage to leave 20% freesoace to help garbage collection. But that is a "nice to have" and not an absolute neccessity
 

My Computer

Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
To check the actual disk usage I find a Linux live CD is as good as anything, (always a good idea to have one in your tool kit anyway), I have a USB stick I keep handy, and this has saved me, (more precisely, clients), on more than one occasion
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
Back
Top