<

Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Moving the Offline Folder Cache in Windows (7, 8, 8.1 and 10)

Published on
4,980 Points
1,780 Views
2 Endorsements
Last Modified:
Joseph Hornsey
I built my first network in 1994 using PowerLAN.  From there I messed around with NetWare and then moved to Windows NT and Cisco.
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to do it.
WARNING:  This article involves playing around with your operating system's registry.  You use this information at your own risk.

According to MIcrosoft:  "Working with offline files is easy. You just choose the files (or folders) on your network that you want to make available offline. Windows automatically creates a copy of each file on your computer. These copies are called offline files. You can work with these files even when you're not connected to the network, and the next time you connect, Windows will automatically sync your offline files with the original files in the network folder."

This is true... working with offline files is super easy, but there's one big drawback to using them - the more files you synchronize, the more disk space you need.  If one has a small operating system partition, this can be a cause for concern as Windows, by default, stores the offline copies on the C:\ drive.

The annoying part is Microsoft, for some unknown reason, has not provided an interface for moving the offline cache.  Nobody knows why.  It's one of those mysteries that may never be solved.  So, if you want those files moved to a larger partition, you're just going to have to roll up your sleeves and do a little manual labor.    

OTHER WARNING:  If this isn't a FRESH installation of Windows, make sure you have synchronized your offline files.  This procedure will ERASE ALL EXISTING OFFLINE FILES AND FOLDERS!!!

In order to move the cache, follow these steps:

1. Clear the content of your existing cache
Yeah, you have to do this.  And, it's not a very obvious procedure.  You end up creating a registry key that resets the cache at startup and then deletes itself.  Here's the command to create the registry key (you can do this at a command prompt):

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

Open in new window



Once you've done this, reboot.


2. Create the folder in the location where you'd like to have your cache
I always like to keep my data separate from my OS by storing it on a different drive (or, at the very least, a different partition).  For this example, I'm using the path X:\Data\Cache


3. Create a new registry value
Open Registry Editor and browse to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CSC\Parameters

This is the same key we modified before.  Notice how there's no "FormatDatabase" value even though we added it prior to the last reboot.

Right-click on Parameters, hover on New and select String Value:


String-Value-Key-Menu.png
Name the new string value "CacheLocation":


CacheLocation.png 

Double-click on CacheLocation and input the path to the new cache location and then click "OK":


Edit-String.png 

Notice the "\??\" in the value.  This is an NT Object Path used by the OS to reference the local path.  (If it was "\??\UNC\, it would be referencing a network path.)  You must use this format.


You'll see the value populated now in your registry editor:



CacheLocation-Populated.png
4. Reboot
 Once the OS is back up, it should be using the new location.  You can test this by opening the new folder and you should see a folder in there called "v.2.0.6".  You should get a permission error if you try to open that folder.


I hope you find this useful!   If you find that this article has helpful, please click the blue and white ‘Good Article?’ button below.
2
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 66

Expert Comment

by:Jim Horn
Very well written, for the complexity of the subject matter it was pretty easy to follow along.  Voting Yes.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month