none
How to delete the offline file cache or reset the offline file cache in windows 10? RRS feed

  • Question

  • I am having issues connecting to a network drive via VPN.  I had it set up to save a folder for off-line use.  When I logon, the whole drive is stuck in off-line mode.

    My research leads me to believe it could be a problem with the off-line files cash.  Does anyone know how to delete the offline file cache or reset the offline file cache in windows 10?  I have seen Reg Edits on-line for Windows 7, but I don't want to assume those would work on Windows 10 and I don't want to do mess things up more than they are.

    Sunday, August 30, 2015 3:52 PM

Answers

  • Hi,

    You have two methods to clear or reset it.

    Method one: use registry entry

    1. Open up registry editor (WARNING: Only for Advanced Users)

    2. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc

    3. Add a new key (folder) called Parameters

    4. Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, add a new DWORD called FormatDatabase and set its value to 1

    5. You will need to reboot the PC afterwards.

    Method two: clear the CSC folder

    1. Located to C:\Windows\CSC

    2. To access this folder, you need take ownership firstly.

    3. Right-click CSC folder that you want to take ownership of, and then click Properties.

    4. Click the Security tab, click Advanced, and then click the Owner tab.

    5. Click Edit. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

    6. Click the name of the person you want to give ownership to.

    7. .If you want that person to be the owner of files and subfolders in this folder, select the Replace owner on subcontainers and objects check box.

    8. Click OK.

    9. Then clear all content in this folder.


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Tuesday, September 1, 2015 5:47 AM
    Moderator

All replies

  • Hi,

    You have two methods to clear or reset it.

    Method one: use registry entry

    1. Open up registry editor (WARNING: Only for Advanced Users)

    2. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc

    3. Add a new key (folder) called Parameters

    4. Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, add a new DWORD called FormatDatabase and set its value to 1

    5. You will need to reboot the PC afterwards.

    Method two: clear the CSC folder

    1. Located to C:\Windows\CSC

    2. To access this folder, you need take ownership firstly.

    3. Right-click CSC folder that you want to take ownership of, and then click Properties.

    4. Click the Security tab, click Advanced, and then click the Owner tab.

    5. Click Edit. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

    6. Click the name of the person you want to give ownership to.

    7. .If you want that person to be the owner of files and subfolders in this folder, select the Replace owner on subcontainers and objects check box.

    8. Click OK.

    9. Then clear all content in this folder.


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Tuesday, September 1, 2015 5:47 AM
    Moderator
  • THREADJACKING COMMENCE.

    This does not work for us, how do we completely reinitialize the cache as if its never been used (we had this option via command line in xp.vista and win7).  Even after the above the folders in question remain in offline mode preventing access to the live folders.  the only option to get access to the live folders is to disable the offline files and this is not an option for us going forward.

    Friday, May 6, 2016 9:20 AM
  • Please assist. There is no owner tab when I click on the "Advanced" button. It just says "Owner: Unable to display current owner" and then there is a link that says "Change".

    Clicking "Change" brings up a box that I cannot make sense of.

    Tuesday, May 31, 2016 9:03 AM
  • Method 1 - is the new DWORD 32bit or 64 bit, I'm using Win10x64
    Monday, August 8, 2016 3:56 PM
  • It'S a DWORD. 64 bit would be a QWORD

    mit freundlichen Grüßen, Markus Kugler

    Tuesday, December 20, 2016 11:09 AM
  • I never use anything other than DWORD.  I don't ever recall seeing any QWORD entries.  I've never seen them recommended before either but they exist for a reason.  If it works for you I'd be happy to hear the results.  Maybe I can use it in other situations as well.

    Helpful nice guy

    Sunday, January 15, 2017 8:42 AM
  • This worked with the addition of two steps:

    1. Turn off Offline Files

    Change the Registry (restart too)

    2. Turn on Offline Files and restart

    It wasn't until I turned on Offline files that the cache cleared. 


    • Edited by MJDBuckeye Friday, January 27, 2017 12:41 AM clarification
    Friday, January 27, 2017 12:40 AM
  • The registry key fixed my problem, with an additional step: I had to go to the folder properties and make the files available offline again. Once I did that, everything synced with no errors. Thanks for posting this!
    Thursday, March 23, 2017 3:41 PM
  • Method 1 worked well and was great help with additional steps in my circumstance! Changed domains and had old folder redirection shares from SBS 2011 managed domain.  With Server 2016 the share was different and had tried method 2 and that was a disaster waiting to happen propagating and restoring proper permissions and ownership.  That was a mess!

    Ran Method 1 and just formatted the CSC.  Easy.  But after logging back in nothing shown and domain folder redirection policy was not going anyway.  Ran "gpupdate /force" - logged off, logged back in nada.  Mobsync.exe says no partnerships.  Went back to the registry and noticed that:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSC\Parameters\CachingEnabled was set to 0. 

    Changed it to 1. Rebooted and bingo! back in business.

    Thanks for posting!

    Sunday, February 4, 2018 3:28 PM
  • Not to necro the thread, but it is a common search return for my problem with offline files and DFS where the CSC needs to be cleared. I am just adding the following Administrative Command Prompt methodology to Karen's excellent answer as a third alternative:

    REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f 


    Friday, September 6, 2019 1:28 PM