Thursday, September 13, 2018

temporary files - cleanup C:WindowsWinSxSTempPendingDeletes and PendingRenames


Both, the PendingDeletes and the PendingRenames folder within the windows temp folder are about 1GB in size. Is there any save way to empty or delete those folders?


C:\Windows\WinSxS >10GB
C:\Windows\WinSxS\Temp\PendingDeletes 800MB
C:\Windows\WinSxS\Temp\PendingRenames 210MB


I have no pending installation. My operating system is Windows8.1 Is there any way to cleanup the WinSxS folder as a whole? I already used the clean-up utility when right clicking the disk. But did not change much!


Thanks in advance


Answer



The safe way to clean up WinSxS is with Windows' Deployment Image Servicing and Management (DISM). Running the following in an elevated CMD prompt should theoretically remove some of the excess baggage:



DISM /online /Cleanup-Image /StartComponentCleanup



However, for that task to complete, TrustedInstaller must be running, which is not set up in Windows 8 by default. To run TrustedInstaller, you may need to first enable TelnetServer, then enter



net start TrustedInstaller



After DISM runs successfully (on my PC, I found that DISM worked only when Windows was started in Safe Mode), you may want to disable TelnetServer and stop TrustedInstaller.


After all this folderol, you may find only a modest reduction in the size of WinSxS. In my case, it was reduced from ~10 GB to ~7 GB. sigh.


[It is a great deal easier to use Janitor to clean up old Linux installations and updates, aka "cruff", but Windows is not Linux.]


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...