New
#1
System Cleanup & Component Based Servicing
Just a couple of observations and input is welcome :)
1. System Cleanup - Is this normal ?
There are 3 folders located under C:\Windows\WinSxS\Temp (InFlight,PendingDeletes,PendingRenames) . After a CU there are folders/files that can/do get put in these 3 folders. Like today's CU, there are 9 RandomNumber Folders in \InFlight and 88 files in \PendingDeletes. It's my understanding that Disk Cleanup > System Files (Modules Installer \ Modules Installer Worker) are suppose to clean these up, but for whatever reason it never does and never has. I've even waited a couple of weeks to see if the System \ TrustedInstaller would clean them up, but it never does and never has.
Note: I've tried running the extended version of Disk Cleanup and rebooting.
Note: Running sfc /scannow puts files in the \PendingDeletes and/or \PendingRenames. These never seem to get cleanup either and can grow to a large number of files.
Note: I'm NOT recommending this, but the only way I've found to clean these up is to boot into Cmd Prompt and manually clean them up.
Example:
\InFlight\SomeRandomNumberFolder
Note: These random number folders may or may not be empty and the number of folders can grow after each CU.
\PendingDeletes\$$.DeleteMe.SomeFileName)
Note: Sometimes after running Disk Cleanup > System Files the $$ will get removed, but not the files themselves and the number of files can grow after each CU.
2. Component Based Servicing - Is this normal ?
After a CU there are RandomNumber.xml files that get created in C:\Windows\servicing\Sessions and in the Registry. If you do a ... Run Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase ... the randomnumber.xml files get deleted from C:\Windows\servicing\Sessions ... but they never get removed from the Registry.
Note: I'm NOT recommending this, but I have manually removed the entries from the registry, just to see what would happen and everything works like it should :)
Example:
In Windows ...
C:\Windows\servicing\Sessions\30644937_2357965173.xml and 30644937_2357965173.back.xml
In the Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending\30644937_2357965173