Windows 10: Stop Windows 10 Auto Deleting Thumbnail Cache Solved

  1.    18 Jan 2018 #1

    Stop Windows 10 Auto Deleting Thumbnail Cache


    "Windows XP, Vista, 7, 8 and 10 - How to Stop Windows Auto Deleting the Thumbnail Cache"

    Updated June 2018 "Revised"

    I will first explain in a nut shell what I have did in this order to stop the thumbnail cache from being deleted. But, it might be possible to just take ownership of your personal Explorer and Caches Folder. I was beyond this and did this last.

    I have thousands of thumbnails. Microsoft deletes your thumbnail cache when it reaches about 700MB or lower in size. All My PC's are at about 2.1GB to 2.9GB in size.

    First, I have disabled and deleted many Task Scheduler services that I will show you later.


    First, you have to disable and even remove some tasks. Microsoft had made the deleting your thumbnail cache almost Redundant. Meaning one service with different users such as system, trusted installer, admins, etc can trigger another service and somehow still delete them. This is a well known fact.

    First you go to Regedit, using Admin Privileges and access these 2 registry settings and change the values to 0 which is OFF for disk clean up auto run for thumbnail caches.

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnai lCache

    AutoRun>>Modifychange value from 1 to 0


    And

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCac hes\ThumbnailCache

    AutoRun>>Modifychange value from 1 to 0.


    But Wait, this is not fool proof, the cache will still get deleted. So I just deleted the auto run entries in the registry above but the cache still gets deleted.

    So in Task Scheduler: Control Panel\All Control Panel Items\Administrative Tools
    All these have been disabled or deleted (After exporting and saving backups). Doing this has no negative effect on your system. As these Tasks is what has many triggers for other services even when disabled or deleted.

    It gets tricky. I have spent lots of time to finally get it to stop deleting them. There is no other article on the web that has a solution that works. But this has for me so far for numerous months even with cumulative updates.

    ApplicationData- Disabled
    Diagnosis= DELETED
    Disk CleanUp = DELETED
    FileHistory = DELETED
    Maintenance= DELETED
    RemovalTools = DELETED
    WasSMedic= DELETED
    WDI =DELETED
    Wininet =DELETED
    WorkFolders = DELETED
    Windows Defender 2 tasks:
    A. WindowsDefender Cache Maintenance = DELETED
    B. WindowsDefender Cleanup = DELETED

    Then I went to C:\Windows\System32 and C:\Windows\SysWOW64
    And took "OWNERSHIP" of "cleanmgr.exe.mui" and "cleanmgr.exe" in both locations, which is the "Disk Cleanup Utility".
    Disabled Inheritance and select the bottom selection of the 2 in the confirmation box. This removes all the users in the list.
    Or
    Removed all the Users, and then added myself (My USER ACCOUNT) in the list with full permissions/control. You must add your user account name in the user list even if you are the owner of the object or item and with FULL permissions.

    Then I renamed them "cleanmgr.bak.mui" & "cleanmgr.bak"**This Disables Disk Cleanup**
    **To Enable Disk Cleanup, Rename Files In both locations** "cleanmgr.exe.mui" & "cleanmgr.exe"

    Now when I want a disk clean up done, "I WILL RUN THEM".

    I also took ownership of these files and removed all users and added myself with FULL Permissions.C:\Windows\System32 and C:\Windows\SysWOW64
    WinSATAPI.dll
    WinSATAPI.dll.mui

    I also took ownership of these files and removed all users and added myself with FULL Permissions.C:\Windows\System32 and C:\Windows\SysWOW64
    wininet.dll
    wininet.dll.mui
    wininetlui.dll.mui
    wininetlui.dll

    It took all this to stop it from happening. They have made it Redundant and pretty much impossible to stop it happening no matter what has been disabled, deleted and what not. It took all this and the following to stop it.

    **And I think this is the main key as if only you are the owner of your “Explorer” & "Caches" folder and with only you (and the 2nd user account as mentioned below) in the list of users with full permissions, then no system users can delete the caches.

    So for extra security I went to:
    C:\Users\YOUR USER NAME\AppData\Local\Microsoft\Windows\Explorer
    Where your thumbnail and icon caches are located per user, Took ownership of Explorerand deleted all other users in the list except myself, which I added with full permissions.

    I did the same for this folder:C:\Users\USER NAME\AppData\Local\Microsoft\Windows\Caches

    **Also, I save a copy for a backup of the Explorer” & “Caches” Folders.
    So after a Creator's Pack/Update, I can restore them back.

    NOTE: Anytime you take ownership of an object, you must also then add your name in the list of users with FULL PERMISSIONS.

    I have not since had them deleted.


    If you never have more than about 500MB to 700MB, then they may not get deleted. But upon cumulative updates and other updates they can be deleted no matter how small cache size is if this is not done above.


    And a Creators Pack will delete the cache no matter what.
    But as mentioned, I save a back up of Explorer and Caches folder and copy and paste cache back in to Explorer and Caches after creator’s packs to restore the caches. But to do this, you have to do a couple steps and use command prompt or safe mode to restore thumbnail cache,

    ** OR, create a 2nd user account giving that account full permissions to your user account folder so you can log onto 2nd account and replace your Explorer & Caches folders while logged onto the other account, as you cannot easily replace your Cache folders while logged in and they are in use.
    Note, you must add the 2nd user account to your user account folder list with FULL Permissions so you can access it.
    You can also take ownership of your own C:\Users\YOUR USER NAME account folder.

    I also always have a SYSTEM IMAGE. The #1 MUST, when owning a Computer.


    It was an obsession and I had to stop Windows from deleting the thumbnail cache. It finally paid off.




    How to access the Registry:
    C:\Windows
    Right click on "Regedit"
    Run as Administrator
    Go to the "View Tab" and select "Address Bar"
    Copy and Paste each entry shown above and press Enter
    Either change value to 0 or delete the Autorun Flags
    Close out and Restart PC.
    **NOTE: Before making Registry Entry Changes, Create a new Restore Point and also copy and paste the Registry into a New created folder for a back up.

    Example:



    How to access Task Scheduler:
    Control Panel\All Control Panel Items\Administrative Tools>>Task Scheduler
    Task Scheduler Library>>Microsoft>>Windows
    Disable or Delete the tasks in the Center Pane, Not the Main Tasks in the left hand side Pane. Be sure to EXPORT and save a backup of each task you delete.

    Example:


    Note that each task has a specific Security User that runs a specific task. This is what makes them all tied together and REDUNDANT which give them the ability to somehow delete your Thumbnail cache.

    Some Examples shown below:









    So now no matter what, 4 User names "USERS", "SYSTEM", "ADMINISTRATORS" & "TRUSTED INSTALLER" can use Custom Handlers and somehow run Auto/Silent Disk Cleanup and delete your files and caches. This is why I disabled them and then deleted them.

    How to take ownership of any item:

    Right Click on any Item>>Properties>>Security Tab>>Advanced
    You can see here that TRUSTED INSTALLER is the Owner and all the user names listed below that can run Disk Cleanup.



    Now you take Ownership of the Item:
    Now you select CHANGE next to OWNER.

    Advanced>>Find Now>>Select your user account name in the list>>OK
    Apply>>Verify OK. Now you are the Owner of that file cleanmgr.exe.

    Now select Disable Inheritance.
    (This removes all the users in the list. Enabling it again will replace them back into the list)
    If it does not remove them, then manually remove each of them.

    Now you MUST ADD Your Name to the User List:
    Now select ADD>>Select a Principle>>Advanced>>Find Now>>Select your user account name in the list>>OK>>OK
    Now select full control permissions box>>OK
    Now you are the owner and the only user on the list with full permissions for Disk Cleanup..



    Remember as mentioned above, if you create a 2nd user account on your PC, you can add the 2nd user name to the list with Full Permissions of your C:\Users\YOUR USER NAME account folder so you can replace the "Explorer" & "Caches" files after a Creator's Update.

    NOTE: Now for Maintenance, you can run it manually here anytime you choose to do so.



    NOTE: Remember you can always run Disk Cleanup at any time yourself.
    Control Panel\All Control Panel Items\Administrative Tools >>Disk Cleanup

    ----------------------

    ***This is how to increase you Icon Cache, as claimed by some, but I do not know for a fact it really helps or makes a difference for the Icon Cache:

    Open C:\Windows\regedit.exe as shown above.
    Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

    Now right click and create a new REG_SZ (String Value) and name it >> Max Cached Icons <<
    Give it a value of 4096 (4GB) or 8192 which is (8GB).
    Save and exit the Registry Editor and restart your computer.

    ***If you have a corrupt or damaged Icon Cache or Thumbnail Cache, you can download and run this tool to fix one or both. I have used it a few times on systems and it seems to work good. This is not my tool, but I will provide you the link.

    Thumbnail and Icon Cache Rebuilder for Windows 10 Link:
    http://www.thewindowsclub.com/icon-cache-rebuilder-for-windows-10


    More Helpful Topics and Tips:


    Connecting PC’s and Users for Sharing - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/connecting-pcs-and-users-for-sharing/fb92e439-5dbc-4367-9857-1ef360e9ffdf


    Network & HomeGroup Setup and Sharing XP, Vista, 7, 8 & 10 - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/network-homegroup-setup-and-sharing-xp-vista-7-8/6fe29dd6-6049-4953-b55c-72287e0e9f67?tm=1526264691930


    Home Network Modem-Router & PC Security & Settings - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-security/home-network-modemrouter-pc-security-settings/fb026376-633b-48d6-9184-1572bc9eb9d0


    Network Setup for Dynamic IP Addressing - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/network-setup-for-dynamic-ip-addressing/3ed02b5e-8c83-4706-9993-7cd28bf16a88?tm=1526935286071


    Fix Homegroup Password, Joining and Unjoining Issues - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/fix-homegroup-password-joining-unjoining-and/2df306be-8a49-47c5-b7aa-33275cbebe91


    How to FIX Missing Computer Icons in Network Folder - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/how-to-fix-missing-computer-icons-in-network/37140a9c-f47b-4d19-97e2-2710a7deab27


    How to Install Devices & Software from Older Windows OS's on - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_other-windows_programs/how-to-install-devices-software-from-older-windows/c19bee9c-431f-46e2-85f1-6ab90304d278


    Try to Fix System Problems During or After Windows Update-Upgrade - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-update/try-to-fix-system-problems-during-or-after-windows/f0550db9-66d1-4b95-b23e-36357ed5d523


    Recover Windows Hung Up on Boot or Update Installations - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-update/recover-windows-hung-up-on-boot-or-update/f75a0178-4d81-4085-8b51-af12f8b57e63


    Set Up Internet Options for XP, Vista, 7, 8, and 10 - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_other-networking/set-up-internet-options-for-xp-vista-7-8-and-10/12c19ab0-0c7a-45a4-8c11-75c464c9cb17


    Add Quick Launch Toolbar To Taskbar In Windows 10 - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-start-win_taskbar/add-quick-launch-toolbar-to-taskbar-in-windows-10/7c365da5-1d58-4c0f-bffe-afa1d3af006d


    How to Add a Pagefile to USB Thumb Drive - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-files/how-to-add-a-pagefile-to-usb-thumb-drive/aa62e44e-811d-4428-bab4-c999ce0050bc


    Stop Windows Auto Deleting Thumbnail Cache Updated - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/windows-10-how-to-stop-the-auto-deleting-thumbnail/5d09ef73-7777-4d59-8e47-965379fb91f0


    Windows Media Player - Play ALL Video & Audio Formats Easily - Microsoft Community
    https://answers.microsoft.com/en-us/windows/forum/windows_other-pictures/wmp-play-all-video-audio-formats-easily/ae900cb4-2e8e-4cca-aadb-8da60b1c1464
    Last edited by Seahawks65; 5 Days Ago at 01:39.
      My ComputerSystem Spec


  2. Posts : 83
    Windows 10 Home, 64-bit, Version 1803 (OS Build: 17134.112)
       20 Jan 2018 #2

    Seahawks65 said: View Post
    I was never able to get my cache up above 700Mb and then windows would delete the cache on restart or even when you are logged on to your desktop. Now after doing this and loading all my personal thumbnails in Explorer, minus Program Files, Program Files(86) and Windows folder thumbnails, which is no use to me, it has been 3 days and Windows has not deleted them and the size has also remained at 1.69GB.

    YES, IN FACT, this is the resolution on how to stop the thumbnail cache from being automatically deleted through Disk Clean Up set to auto run. Disable these 2 registry entries auto run values and all is fixed.

    And now I think that since this is where the Disk Clean Up Registry entries are for turning off auto deleting for programs and system files are, that people say Microsoft now deletes your OLD Windows Installation if you do not convert back within 10 days. Well this is where someone in my belief, could turn off auto deletion of your previous Windows installations that are in Disk Clean Up and where you would delete your previous Windows installation from. I believe you could turn it off by changing its "Auto Run" registry entry from "1" "ON" to "0" "OFF" to stop your previous OS version deletion. Seems logical.
    Nice work, and I assume these registry edits are reversible. . . ?

    I haven't done the second edit yet, but will in a bit. . .
    Just change the "Value data" to 0, and restart, correct ?

    Click image for larger version. 

Name:	Reg edit 1.JPG 
Views:	6 
Size:	105.0 KB 
ID:	173418







    Oh, and here's a picture of my thumbnail catch . . .

    Click image for larger version. 

Name:	diggers preflight check 1.jpg 
Views:	94 
Size:	126.2 KB 
ID:	173420

    Whoops, wrong picture. . . .




    I meant cache. . . yours and mine. .

    Click image for larger version. 

Name:	Thumbnails.JPG 
Views:	5 
Size:	61.5 KB 
ID:	173421
      My ComputerSystem Spec

  3.    2 Weeks Ago #3

    Wow, I honestly did not expect this to work, but it's been a whole day now since I've made these changes and Windows has not refreshed the thumbnails once. For me windows was reloading them every single time I opened any folder up. It boggles my mind how Microsoft can just purposely ignore issues like this. Thank you so much for this fix my friend.
      My ComputerSystem Spec

  4.    5 Days Ago #4

    I can't seem to be able to delete (or disable) WaaSMedic. Getting "The user account you are operating under does not have permission to delete this task" even after opening as admin.
      My ComputerSystem Spec

  5.    5 Days Ago #5

    t3nfo0ums accou said: View Post
    I can't seem to be able to delete (or disable) WaaSMedic. Getting "The user account you are operating under does not have permission to delete this task" even after opening as admin.
    Yes, after the April 2018 update, it returned back on mine. I tried everything including taking ownership of the C:\Windows\WaaSMedic folder and only myself as a User. Then I still could not delete the task. Do not worry about it, it will not delete the cache with the other things completed above.
    Last edited by Seahawks65; 5 Days Ago at 01:50.
      My ComputerSystem Spec

  6.    5 Days Ago #6

    cmmillar said: View Post
    Wow, I honestly did not expect this to work, but it's been a whole day now since I've made these changes and Windows has not refreshed the thumbnails once. For me windows was reloading them every single time I opened any folder up. It boggles my mind how Microsoft can just purposely ignore issues like this. Thank you so much for this fix my friend.
    I think Microsoft want to make their OS bad not better. They have also taken peoples rights away as they control what you can do with the device and software you purchased and own. It is almost criminal.
      My ComputerSystem Spec

  7.    3 Hours Ago #7

    I Love keeping my Thumbnails.
      My ComputerSystem Spec


 

Related Threads
After this second Creators Update (Creators Update 2), the thumbnail cache keeps deleting itself and having to rebuild after I wake it up from sleep mode, or just after a few hours of PC use (like maybe about 4 to 5 hours). Is anyone else having...
Hey guys, just made the upgrade from Win7 and I am wondering how to do this as the title suggests, I remember there being such a thing to do this here over at the sevenforums but this method is no longer working for Windows 10, so I am wondering if...
I have a folder on my desktop called "PC GAMES" and it has shortcuts to my game executables. I have the folder set to "View extra large icons" unfortunately Windows 10 doesn't load the cache all the time and my HDD has to spin up to load all the...
Windows keeps a copy of all your folder, picture, video, and document thumbnails in a cache so they can be reused to quickly display when you open a folder instead of having to manually scan and slowly load them each time. The thumbnail cache can...
Does Windows automatically refresh the thumbnail cache of its own accord? If so, how often does it do it? I know you can kick it off manually. I have a load of m4a music files where explorer is not displaying the album art thumbnail. I just wondered...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:33.
Find Us