Offline Files

One of the key things that we focused on for Windows Vista was improving the experience for mobile (laptop) users.  If you are like me, you spend quite a bit of time running around with a laptop.  However, when I am in my office, I tend to use my desktop.  The primary way that I share files between my desktop and my laptop is by storing them on a Windows Server (it's also the primary way that I make sure that my files get backed up).  For example, at Microsoft we redirect the "Documents" folder (previously known as "My Documents" in Windows XP) to a share on the server (of course, we use access controls on the folders to make sure that I am the only person who can see my files).

By redirecting key folders like the Documents folder to a file share, my documents are available to me no matter which one of my Windows PCs I am using.  The problem of course is what happens when I don't have access to the server -- such as when I am not on the corporate network or perhaps sitting on an airplane.  Frankly, the same problem exists with any file share that I might try to access when I am not on the corporate network.

Well, as it turns out, we have had a very cool feature in Windows (actually, it's been there since Windows 2000) called "Offline Files."  (We actually used to call it "Offline Folders.")  As the name implies, Offline Files allows you to mark particular folders (and their sub-folders) to be available offline.  When you are on the network, Offline Files automatically synchronizes the folders so that you have a copy of them locally on your hard disk.  Then when you are offline (and don't have access to the actual server), Offline Files makes it look like you are online by simply accessing the locally cached copy.  Later, when you do have access to the file share, Offline Files automatically synchronizes any changes you have made offline with the online version and vice-versa.

So why am I telling you about a feature that's been available since Windows 2000 here in the Windows Vista Team blog?  Well, frankly, because we have made quite a few enhancements in the Offline Files support for Windows Vista.  Here are some examples.

In Windows XP, the transition from online to offline was pretty seamless -- which was good.  The problem was that when you came back to the network and tried to reconnect, it was sometimes less than seamless -- and we fixed that with Windows Vista.  Now, when Windows Vista detects that the server is available, not only do we automatically synchronize any files and folders that changed, but we also automatically redirect any open files to the online copy.

Another thing that always bugged me before Windows Vista was the fact that there was no way to force the transition to "offline mode."  I don't know about you, but before I get on a plane for 5 hours I want to make sure that all the documents that I need are locally available on my laptop.  Prior to Windows Vista, I had to manually turn off my wireless card to make the system think I was offline.  The problem there was that it was a complete disconnect that killed my connection to the Exchange Server.  Now, with Windows Vista, there is a button right in the Explorer tool bar (that is available whenever I am looking at a file share) called "Work Offline" that automatically forces the transition to offline mode.  Of course, when you click the button it changes from "Work Offline" to "Work Online" so that you can force the transition back.  This is a simple way to verify exactly what you will see when you are travelling to double-check that you have everything that you need.

We did some other "fit-and-finish" things to Offline Folders to make it more usable as well.  One example of this is the way that we synchronize the offline files with the online copy.  Offline Files in Windows Vista keeps track of the blocks that are modified while offline and only transfers the changed blocks to the server.  This makes synchronization of changes from the client to the server much faster. I should note that this optimization is only used when transferring changes from client to server; it is not used when transferring changes from the server to the client.  I should also note that some applications (like Microsoft Word) create a new file when you modify an existing document, so you won't see the benefit here.

We also changed the synchronization approach so that we now only try to synchronize the shares for the user that is logged on.  This addresses a problem that users would hit in the past when we used to try to sync all offline folders and the user saw an "access denied" error for the folders that actually belonged to someone else.  Navjot Virk, the program manager for Offline Files, wrote a great blog entry on Offline Files that covers this in more detail and I encourage you to check it out.

There are many ways you can turn on Offline Files.  The simplest way is to browse to a file server, right-mouse to get the context menu for the folder or file that you want to be automatically cached, and select "Always Available Offline."  You are done; it's just that easy.  Work with the files/folders just like you would normally whether you are travelling (and disconnected from the network) or working at your desk (and connected to the network).  Windows Vista's Offline Files automatically synchronizes all the changes for you without you having to do anything.

Offline Files 2 

If you want to force a manual synchronization, then right-mouse on the folder/file and select "Sync."  You can of course use the "Sync Center" to do this, too.

If you want to have your entire "Documents," "Desktop," "Music," etc., be located on a server (or perhaps different servers), but cached (and synchronized) locally, then simply change the location of the folder to be on a server (or another client) and then mark the folder on the server to  be available offline.  See below.

Offline Files 1 

So if you are like me and you work with multiple Windows PCs and sometimes are not on your main network, go give Offline Folders a try on Windows Vista.  If you are someone who tried it before on Windows XP, then I think you will be very happy with the enhancements we've made in Windows Vista.

jim


Comments

  1. Posted on: January 29, 2007 at 7:41PM  

    This is a good explanation.  However, this is not simple.  It needs to be simple.

  2. Posted on: January 29, 2007 at 7:44PM  

    What happens of you change a file on your laptop while is it offline, then change the same file from your online desktop computer, and afterwards reconnect the laptop? How are these out-of-sync issues handled?

    ...Btw. I like You changed the name from "Offline Folders" to "Offline Files" when it is in fact offline folders (according to your description).

  3. Posted on: January 30, 2007 at 10:16AM  

    How does one relocate "my documents"?

  4. Posted on: January 30, 2007 at 10:35AM  

    Very good and timely subject. We're in the midst of planning our office Vista deployment and this is a good topic to review in our rollout meetings. We redirect My Documents in our office too, and I'd love it if the default wasn't Offine. We found this out in XP when turning on redirection forced a offline synchronization of everyone's home drive.

  5. Posted on: January 30, 2007 at 1:03PM  

    dugbug:

    There are two ways you can redirect the 'Documents' and  or other folders within the users profile:

    First Option: As an end user you can simply right click the Documents folder and get to the properties of the Documents folder and from there use the 'locations' tab to redirect the folder to any location (local or network)you have access to.

    Second Option: If you are familiar with Group Policy, you as an administrator can use the Folder Redirection snap-in UI in GPMC to configure folder redirection for the 'Documents' as well as other redirectable folders in your profile using Group Policy.

    PS: You'll notice that i used the word 'Documents' above as in Windows Vista,  the profile namespace has also been updated to make it flatter and more intuitive to the end user and the 'My's' have been dropped from in front of the default folder names.

    SandyWood:

    You can change the default behavior of caching of Folder Redirection by enabling the following policy on your Folder Redirection GPO as well:

    User Configuration>Administrative Templates>System>Folder Redirection>'Do not automatically make redirected folders availaible offline'

    Hope this helps.

    Anshul Rawat

  6. Posted on: January 30, 2007 at 3:32PM  

    Jim,

    Have fun during your much deserved vacation and good luck in the future. Thanks for everything.

  7. Posted on: January 31, 2007 at 10:13AM  

    Anshul,

    Thanks.  I see it now.

  8. Posted on: January 31, 2007 at 1:06PM  

    Hey "Jim Allchin",thx for share

    ---------

    http://www.dl4all.com

  9. Posted on: January 31, 2007 at 10:39PM  

    Hi Jim

    Thats great to see new features for Offline Files.Have you come accross the following issue at all?

    What about offline files where a folder is created in an exisitng directory marked for offline syncronisation by a machine not setup to syncronise that folder. Result is folder is created but laptop doesn't "See" Syncronise the folder when it does a sync.

    This usually happens to users who have a Workstation and a laptop. Using XP with 2003 server.

    Senario : User works all day on workstation creates new folder/files in his "Home Directory" Which is setup to be available offline. Then plugs laptop into network and performs file syncronisation of "Home Directory". Which complete's with out error.

    User go offline then attempts to access that days files... and there not there.

    If user creates new folders/files offline they are syncronised back to server and so forth fine from the laptop.

    If online with laptop and createing new folders/files it works fine also and does syncronise new folders/files.

    I Have seen this this behavior at 3 separate server/network client locations.

    I hope Vista doesn't have the same issue.

    I havn't tested for this issue with Vista OS yet.

    I have an open case with MSS and I am awaiting feedback.

    Probably a little off topic my applogies,but thought it worthy to share my experiences with offline files with XP and Server 2003.

  10. CCE
    Posted on: February 02, 2007 at 6:53PM  

    Is there, or will there be, an updated csccmd for Vista?  I have users with "XP compatible" Document folders, which places the Pictures, Music, and Videos folders underneath Documents.  I want Documents and its subfolders available offline by default, but Videos should be excluded for performance reasons.  I'm also thinking about a special "Online Only" folder underneath Documents so that users can put anything they don't want synchronized in there.  This would be set up by a script that would run the first time they log in to their laptop.  Administratively assigned offline files is no good since it is all or nothing.  If I assigned "Documents" I would also get the Videos folder underneath.

    Thanks!

Trackbacks

  1. Posted by: Absoblogginlutely on January 29, 2007 at 7:31PM

    Jim Allchin blogs about changes to offline files in Vista and includes the great titbit of information that now, finally, the pc will only sync the files belonging to the user that is logging off so that the access denied...

  2. Posted by: The Filing Cabinet on January 30, 2007 at 1:14PM

    Jim Allchin has been using Offline Files and loves it! Check out his write-up over in the Windows Vista

  3. Posted by: Windows Vista Team Blog on June 08, 2007 at 12:28PM

    In his blog, Microsoft IT Evangelist Keith Combs mentions a couple upcoming chats scheduled for July

  4. Posted by: conexiva.net » C??mo hacer un reinicio (reset) de la base de datos de los Archivos Sin Conexi??n (Offline Files) en Vista on February 03, 2009 at 8:53PM

    Pingback from  conexiva.net » C??mo hacer un reinicio (reset) de la base de datos de los Archivos Sin Conexi??n (Offline Files) en Vista