CHEF-KOCH's Microblog ✨

How to fix Windows 10 and 11 flooding folders with empty TMP directory garbage

Windows 10 and 11 flooding the folder

C:\Windows\System32\config\systemprofile\AppData\Local

.... with some useless garbage. There is no option to disable it within the Windows GUI or system settings page. The reason why this is spawned is that Windows creates temporary folders for the Provisioning Package Runtime Processing tool which initially runs the moment you login into Windows.

Workaround disabling the scheduler for Provisioning Package Runtime Processing tool

This method has no negative side-effect.

SCHTASKS /Change /TN "\Microsoft\Windows\Management\Provisioning\Logon" /DISABLE >NUL 2>&1

Manual cleaning method

You can create a cmd file with this content, and run it from time to time, alternative use cleaners like PrivaZer.

for /D %%i in (C:\Windows\System32\config\systemprofile\AppData\Local\tw*.tmp) do rd /S /Q %%i

A side-effect might be that you get no access to the folder nor the files with the batch method. Only cleaner running under SYSTEM rights might be able to clean all if the junk.

https://docs.microsoft.com/en-us/windows/configuration/provisioning-packages/provisioning-how-it-works

#Windows 11 #Windows #Windows 10 #TPM

- 2 toasts