Windows 7 Thread, Windows 7 Offline Files (I need to extract some!) in Technical; I use the evil technology that is offline files on staff laptops. One of my users did some work offline ...
8th September 2010, 11:23 AM #1
Windows 7 Offline Files (I need to extract some!)
I use the evil technology that is offline files on staff laptops. One of my users did some work offline over the summer and these files just flat out refuse to synchronise. Another user suffered a similar problem on Windows XP and I simply used CSCCMD 1.1 to extract the un-synchronised files and copied them.
I'm guessing a similar fix woould work here but the CSCCMD tool doesn't work on Windows 7 (or Vista for that matter) so I'm a bit stuck.
How do I extract these files from the offline files cache???
IDG Tech News
9th September 2010, 09:24 AM #2
Am I really the only person to have encountered a problem with Windows 7 offline files?!?
9th September 2010, 09:59 AM #3
you're the only person silly enough to use them :-p
9th September 2010, 10:03 AM #4
Does seem very quiet in here!
9th September 2010, 10:08 AM #5
I have to ask, but why does that person log on and just copy the files to a stick? .....
9th September 2010, 03:29 PM #6
@ZeroHour: You would think that I would do that... Windows has decided to ferret the files away into the offline cache and has told them that they can't go out to play!
9th September 2010, 03:52 PM #7
If the files are avalible offline but not online why not just logon to the station then go to the offending folder location and click the "Work Offline" option in the top bar of the folder. This will then allow you to grab any avalible offline files and copy them to the desktop/temp folder. Now click "Work Online" and copy them back.
You should then reinitialize the offline files cache as the DB is obviouly corrupted:
How to reset Offline Files in Windows Vista
I have only ever had this happen once when the machine ran out of allowed space for syncing of files on a couple of occasions with about 85GB of data synced.
To reinitialize the Offline Files cache, create the following DWORD registry value with a value of 1 and restart the system.
Note that 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 other no-syncing files issue that I had was with teachers trying to sync 1.something GB video files which timed out and would not sync from the local copy back to the server, this was resolved by simply copying the files directly.
Thanks to SYNACK from:
gtg93 (29th January 2013)
10th September 2010, 12:59 PM #8
I just can't seem to get at the files... even in offline mode! I am attaching the screen that shows the fiels that are not synching.
10th September 2010, 05:26 PM #9
Have you checked the perms on those files serverside, it looks like they are already up there in some form. I would look at taking ownership of them and changing the perms to everybody on the problem ones then give it another go. The file perms can get messy if there are a large number of files being pushed at once and the AV gets in the way.
You can also run an NTFS - scandisk/checkdisk on the volume to make sure that the security descriptors are valid. Had this issue when a slightly older version of Symantec Endpoint protection got antsy.
10th September 2010, 11:18 PM #10
I'm glad this thread is still alive or I would have missed it due to only skim-reading the forums these last few days. Getting to the offline files cache is actually quite simple once you know how, though it was easier in Vista than it is in 7.
First off, you'll need either your Windows 7 setup disc or something like ERD Commander. If you're using whole-drive encryption with BitLocker (or something else), then you'll need to use whatever tools are available to you to decrypt the volume first. I don't use BitLocker precisely because it makes this sort of data recovery far more inconvenient than the protection is worth, so I can't help you with that step.
Reboot your machine into whichever of the above you have, and launch a command prompt. To launch a command prompt from the Windows setup disc, wait until you're in the GUI and then hit Shift+F10
cd to D:\Windows\CSC\v2.0.6\namespace
It's D:\ and not C:\ because C: will have been assigned to the normally-hidden BitLocker partition while you're in this mode. This folder is well protected, with only the SYSTEM account having access. What's more, when Windows 7 is running, you cant access this folder or its content even if you use something like psexec -s cmd to run a command prompt under the SYSTEM account (and even if you stop the Offline Files service first). This is why we're using a separate environment.
Now simply run dir
You should see a list of directories corresponding to servers the machine has synchronised from. cd into one of them and you'll see share names. From there, you can cd to whatever folder is synchronised.
Now, if you have any sense whatsoever you will have configured Windows to encrypt the offline files cache (which is what I do instead of using BitLocker), so even though you can see these files as SYSTEM, you can't access them directly because they are encrypted with the user's EFS certificate. The first step to having the files themselves is to use robocopy with the /EFSRAW switch to copy whatever you need to a folder elsewhere on the disc.
Once you have all the files you need, reboot into Windows proper and find the folder you copied stuff to. You still won't have immediate access to the files because they are still encrypted with the user's EFS certificate, so you'll need to make these files available to the user (or steal their EFS certificate and load into into your own certificate store) and have them copy them back to wherever they are needed.
AT's final thought: If the Offline Files cache has shafted itself for some reason, none of the above may work. You're on your own.
Last edited by AngryTechnician; 10th September 2010 at 11:25 PM.
Thanks to AngryTechnician from:
11th September 2010, 02:02 AM #11
Cheers angryTechnician... I shall attempt that on Monday. XP was definitely easier to fix
11th September 2010, 11:03 AM #12
It also broke far more often in my experience. We would generally have to un-bork about 1 laptop per month with XP due to Offline Files, but after switching to Vista we only had 1 down in 2 years. I think the trade-off was worth it.
Originally Posted by Ric_
25th May 2013, 11:04 AM #13
- Rep Power
I know this reply is a little old but I thought I'd add my solution to this problem.
I moved user's home drives, their my documents were re-directed to h: drive setup for offline sync via Group Policy, with encryption enabled.
the solutions above did not work for me and took and very long time (particularly trying to take ownership of the files).
As is turns out, none of that is necessary.
To access the offline files from the 'old' network location...
Open the currently Offline Files location and click into any sub-folder.
Then in the address bar of explorer where is says...
e.g. "Libraries\Documents\Folder Name"
- click in the white space next to it and it will resolve to the Offline UNC path
eg. "\\Servername\Sharename\username\Folder Name"
For me this was now pointing to the new offline file location of their home drive on the new server.
To access the Offline Files of the Old offline location all I needed to do was Manually edit that UNC path.
e.g "\\OLDServername\OLDSharename\username\Folder Name"
Once there you should now be looking at the offline version of the old server/folder path. you can now edit the folder to the Highest Parent Folder and ALL the offline files are now visisble.
This allows FULL access to all the Files and they can be copied, moved and edited from here...
I then use a simple Robocopy script to move those files to a new location (it will copy files that in the DB but Synced ad 0 space files, Offline that that have not been synced will copy in full, no problem)
robocopy Source Destination /MIR /W:0 /R:0
/MIR - be careful this will do a mirror copy - any files in the destination folder that don't match will be permanently lost. so recover to a clean new empty Folder.
/W:0 /R:0 = don't wait and don't retry - without this the process will take forever on 0KB file links and wait 30 seconds for a retry.
robocopy "\\OLDServername\OLDSharename\username\" "c:\recovered" /MIR /W:0 /R:0
once that is finished do a search in the destination folder for any/all files that are empty and Delete them.
What you will have is the offline files you need (there will be some legacy 0kb files that search does not pickup, so if merging with a destination folder be careful of the warning of overwriting any distination files, if you're not sure choose the Keep both option when copying/moving...
Hope it helps.
Last edited by InsaneHomer; 25th May 2013 at 11:05 AM.
Thanks to InsaneHomer from:
By AIT in forum Windows 7
Last Post: 24th October 2013, 03:27 PM
By plexer in forum Windows 7
Last Post: 4th November 2011, 03:21 PM
By Kyle in forum How do you do....it?
Last Post: 5th September 2008, 03:26 PM
By projector1 in forum MIS Systems
Last Post: 10th December 2007, 11:30 AM
By FN-GM in forum Windows
Last Post: 1st August 2007, 02:15 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread