How to change the location of the offline sync folder
- Log in as a user with administrative rights, e.g. the local
Administrator
account. - Create the directory to be used by the new CSC database, e.g.
D:\CSC
. - Run
regedit.exe
and navigate to: HKEY_LOCAL_MACHINE
System
CurrentControlSet
Services
CSC
Parameters
- Add a new DWORD named
FormatDatabase
and set its value to1
(the digit one). This DWORD forces Windows to erase/reinitialize the current CSC database. The DWORD will be automatically removed once the CSC database is ready. - Reboot the computer.
- Log in as a user with administrative rights.
- Run
regedit.exe
and navigate to: HKEY_LOCAL_MACHINE
System
CurrentControlSet
Services
CSC
Parameters
- Add a new string named
CacheLocation
and set its value according to this format:
\??\Drive:\Folder
That’s one backslash, followed by double question marks, followed by another backslash, followed by the drive letter in question, followed by a colon, followed by a third backslash, and finally add any pathname relative to the root directory of the drive in question. Note, this should be a drive letter for a local drive/partition, otherwise you’d defeat the purpose of offline files in the first place. The use of any root directory should be avoided at all cost.
E.g.\??\D:\CSC
- Reboot the computer.
- The old CSC database is now just an empty CSC database and may be left in place. A new CSC database will be established at the selected location.
- Log in as any normal user and (re)establish the use of offline files.