Tag Archives: Offline Files

Reset Offline Files cache

For my reference, mostly…

In Windows XP: In Explore’s Tools → Folder Options → Offline Files, then press CTRL+SHIFT and click the “Delete Files” button. How Macintosh is that? I’ve had to perform that maneuver a few times.

With Windows Vista, the reworked Offline Files facility has worked much better. Only once did I need to reset the offline files cache, and that was very early on during our deployment testing.

In Vista, the process requires setting a registry value:

To reinitialize the Offline Files cache, create the following DWORD registry value with a value of 1 and restart the system.

HKLMSystemCurrentControlSetServicesCSCParametersFormatDatabase

Note that you will have to create the Parameters key, and any unsynchronized changes will be lost.  In addition, any files and folders pinned by means other than Folder Redirection or Group Policy will no longer be pinned on that client. 

The setting of this registry value may be automated using REG.EXE.

At the search / run input box in your start menu copy and paste the following text.

REG ADD "HKLMSystemCurrentControlSetServicesCSCParameters" /v FormatDatabase /t REG_DWORD /d 1 /f

From http://windowsvistablog.com/blogs/windowsvista/archive/2007/01/29/working-with-offline-files.aspx

Clearing Offline Files Cache in Vista

There’s a rather arcane process to reset the offline files cache on a Windows XP system. However, the offline files caching engine was reworked in Windows Vista. After a few google searches, I located some useful blog entries that referenced a KB article and described a process involving setting a registry key and rebooting:

“add the FormatDatabase registry entry to the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesCscParameters
Then, set the FormatDatabase registry entry to 1.
The restart your computer”

I had to create the Parameters subkey. I created DWORD value and restarted the system without a network connection. Indeed, my local cache of my redirected My Documents folder was gone.

Another link:
http://blogs.technet.com/filecab/archive/2006/12/12/moving-the-offline-files-cache-in-windows-vista.aspx

–Geoff