Answered by:
How to delete the offline file cache or reset the offline file cache in windows 10?
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.
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.
- Proposed as answer by Karen HuModerator Wednesday, September 9, 2015 9:04 AM
- Marked as answer by Kate LiMicrosoft employee, Moderator Thursday, September 10, 2015 1:08 AM
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.
- Proposed as answer by Karen HuModerator Wednesday, September 9, 2015 9:04 AM
- Marked as answer by Kate LiMicrosoft employee, Moderator Thursday, September 10, 2015 1:08 AM
-
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.
-
-
-
-
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
-
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
-
-
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!