Offline Files Error

Recovering A Deleted Windows 7 Offline Files Cache

Volume Shadow Services and Robocopy to the rescue!

Offline Files can be a fickle beast. Mighty useful, but fickle. I’ve got one user I support whose offline files cache constantly finds itself in a corrupt state, with no logical explanation as to why. The fix is to reinitialise the cache, which has been keeping them going until I can work out why this keeps happening.

The trouble with constantly resetting the cache is that you increase the probability of loosing things. Until now it hadn’t been an issue, as it’s only older files which weren’t syncing. But recently a folder of new work didn’t sync with the server. When the cache was reinitialised again: bam! Folder gone!

Thankfully, when you run the Microsoft Fix It tool, a Volume Shadow Services snapshot is created (this has happened on all of the computers I’ve seen, but it is possible it doesn’t always create it). The Offline Files cache is stored in C:\Windows\CSC. If you are able to access a previous version of the Windows folder, then the CSC folder should have your files in it.

The trouble is, you need to change permissions of the folder to open it up and extract the documents needed. You can’t do this with a previous copy as everything in there is read-only.

The solution is to use Robocopy, the brilliant robust file copy tool provided since Windows Vista and Windows Server 2008 R1, to copy the previous version out to a temporary location so you can modify it’s permissions. Here’s how:

  1. Open up the Windows folder for the previous version (right click > Properties > Previous Versions > choose the version > Open), right click in that window and open Properties.
  2. Find the UNC path for the previous version’s location. This is something like \\localhost\c$\@GMT-2013.03.04-01.00.00\Windows
  3. Create a folder somewhere on an NTFS volume large enough to store a copy of the CSC folder.
  4. Load up command line and run this command: robocopy “\\localhost\c$\@GMT-2013.03.04-01.00.00\Windows” “C:\CSCTemp” /e /copyall /zb
    (the /zb command ensures it is in backup mode, which generally bypassed access denied issues)
  5. Watch it copy your folder structure and files.
  6. Go to your newly created folder and make yourself the owner (Properties > Security > Advanced > Owner > choose your own account and set it recursively)
  7. You should now be able to navigate through the new folder and copy any files you want back to their correct location
  8. Rejoice!

Hopefully this works for you. If a previous version doesn’t exist for that folder, you may need to resort to disk recovery tools.

Anthony Eden is a technologist. He's been developing software and websites and working in broadcast media for over 8 years now. He works full time for Hope Media, and provides contract services through Media Realm.

Follow Anthony on Twitter: @anthony_eden or Google+

But Wait... There's More!

Sign up for the email newsletter about media and technology.

Tags: Data Recovery · Microsoft Windows · Offline Files · Robocopy · Volume Shadow Services

Stay Up to Date

Every few weeks we’ll let you know about the latest in web, broadcast and media.

Worth a read…
Building a Radio Station Website-Building

Developing a Radio Station Website

Hope Media iPhone App

Recent Work: Hope Media iPhone App

Radio Automation Software

Radio Station Playout / Automation Software

Radio Studio Design and Build

Building a Radio Studio

Free Software

Free Software for Radio Stations

Popular articles…
Church Streaming

How to: Live Webcast your Church Service – Getting Started

OpenVPN Tunnel Through Proxy

OpenVPN Client through a Restrictive Firewall and Proxy

Wordpress Pros and Cons

WordPress Pros and Cons

Recently published…
Radio-Donations-Page-Design-and-Usability---header

Radio Station Website: Donation Page Design and Usability

Streaming Radio Player: Development

Radio Station Website: Radio Player Design & Development

Building a Radio Station Website-Building

Developing a Radio Station Website

Stay Up to Date

Every few weeks we’ll let you know about the latest in web, broadcast and media.