I originally had a post on how to clean up WinSXS from 2014. However, I have come across a program that I have tested, and works very well.
The program is Patch Cleaner. This program scans your Installer folder to check if there are orphan files relating to programs or patches you may have removed from your computer. Any orphan files Patch Cleaner locates can be removed.
I have tested Patch Cleaner on Server 2012 and 2012 R2, including production terminal servers with 100 users. I have no had any issues thus far.
With Server 2012, running Patch Cleaner was removing on average 20GB+ on each server.
I would recommend checking this out if you are still stuck for space.
Windows Update Services, or WSUS can be a real pain at the best of times. On Small Business Servers, which are often neglected, some strange issues can arise.
The most common issue is that WSUS goes crazy and downloads everything. Yes, this does happen.
You may not know, but you shouldn’t uninstall WSUS on a domain controller, IE Small Business Server.
Here is how you can disable it and clean up the mess.
- Under Options, select Products and Classifications
- Unselect everything, and then select Bing Bar. You need something selected.
- Under Classifications, select Critical Updates
- Remove Automatic Approvals
- Run the Server Cleanup Wizard with everything selected
- Once this is done, you can leave WSUS as is, or you can disable the service
- With the service stopped and disabled, you can also delete the content database. Only do this if you are never going to use WSUS again.
Hopefully this has helped someone.
You may have come across this issue when you’ve upgraded your computer to Windows 10. Upon returning to your computer, the screen refreshes slowly and applications appear to have crashed due to memory issue.
There have been many suggest ways to fix this, but the simplest way is to do the following:
- Open Regedit by pressing Windows Key + R and typing regedit
- Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management
- Change the value of ClearPageFileAtShutDown to 1
- Reboot your computer
This will wipe the page file on reboot.
This may increase the shutdown time of your computer, but it will fix this error. The root cause of this error is an incompatible driver on your system. I will follow up with an article on this process.
It’s annoying that Disk Cleanup (Cleanmgr.exe) is no longer installed by default. You can install Disk Cleanup by installing the Windows Desktop Experience – but, there is another, less annoying way…
copy C:WindowsWinSxSamd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.2.9200.16384_none_c60dddc5e750072acleanmgr.exe %systemroot%System32
copy C:WindowsWinSxSamd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.2.9200.16384_en-us_b6a01752226afbb3cleanmgr.exe.mui %systemroot%System32en-US
Server 2008 R2 (x64)
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63cleanmgr.exe.mui %systemroot%System32En-US
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7dacleanmgr.exe %systemroot%System32
Server 2008 (x64)
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_b9f50b71510436f2cleanmgr.exe.mui %systemroot%system32en-us
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_c962d1e515e94269cleanmgr.exe %systemroot%System32
Server 2008 (x32)
copy C:Windowswinsxsx86_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_5dd66fed98a6c5bccleanmgr.exe.mui %systemroot%System32En-US
copy C:Windowswinsxsx86_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_6d4436615d8bd133cleanmgr.exe %systemroot%System32
Now go to Run and type cleanmgr.exe
You will now see Disk Cleanup run.
Unfortunately on Windows 2012 R2 you must install the Windows Desktop Experience.