How to re-initialize the offline files cache and database in Windows 7

Make sure you perform an offline file sync before applying this fix. Any locally stored data will be deleted as part of the process.

Using Regedit:

  • Locate the following registry subkey, and then right-click it:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CSC

  • Point to New, and then click Key.
  • Type Parameters in the box.
  • Right-click Parameters, point to New, and then click DWORD (32-bit)Value.
  • Type FormatDatabase, and then press ENTER.
  • Right-click FormatDatabase, and then click Modify.
  • In the Value data box, type 1, and then click OK.
  • Exit Registry Editor, and then restart the computer.

  • Using regadd.exe

    1. Open a Command Prompt Window as the Administrator
    2. Type or copy and paste the following command: REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f
    3. Restart your computer
    4. login as the offline files user and start a file sync to test that the fix worked.