Enable Offline files greyed out

[ Thursday, November 19, 2009 | 0 comments ]

Sometimes users see "enable offline files" option greyed out in the Offline Files tab. This happens when the group policy is set to disable offline files. This locks the offline files UI and users will not be able to change any setting. You might have to contact the administrator of the computer domain to get the the group policy modified to enable offline files.




Can not enable offline files

[ Sunday, November 15, 2009 | 0 comments ]

In Windows 2003 Server, one can not enable offline files when Remote desktop is enabled on the machine. If you do not see anything in offline files tab (like above) in Folder options windows then check if Remote desktop is enabled on the machine.




In Windows XP, one can not enable offline files when Fast user switching is enabled on the machine. If you do not see offline files tab in Folder options then check if Fast user switching is enabled on the machine.

Laptop and Desktop Files synchronization

| 0 comments ]

offline files feature can be used as a tool to synchronize files between two computers, though it is not really intended for this purpose. Many laptop users face the situation that they keep the files on their laptops as well as the desktops and have to do a manual synchronization between the two when the files are modified on one machine. Or sometimes one may forget which machine has the latest modified files. All this can be avoided by using offline files.

How to use it?

  • Keep the files on the desktop machine and share it and give access only to yourself.
  • Enable offline files on the laptop.
  • Access the share from the laptop and mark the share for offline availability.

Now you can work on the files even in disconnected mode and when you reconnect the machine to the network, offline files automatically replicated the changes to the desktop machine.

When online all the file access happen on the server copies and offline files always keeps the local files up to date by invoking synchronization manager at regular intervals of time.

offline files : mdb file type

| 0 comments ]

Some of the file types are excluded from offline file caching by default. mdb is one such file type.  Whenever CSC finds files of excluded file types it gives error saying that "Files of this type can not be made available offline"  For more details see the post list of excluded file types.


The list of excluded file types can be controlled using the registry key ExtExclusionList.


CSC settings Windows XP

| 0 comments ]

Client Side Cache(CSC) has many configurable settings which control the way CSC can be used on the system. Some of these settings can be configured in UI directly while the remaining can be configured using group policy or registry keys.

User Interface(UI):

Open My computer -> Tools -> Folder options -> Offline Files

Here we can set the following

  • Enable/Disable offline files
  • Do synchronization during login / logoff
  • Encrypt the local cache
  • Amount of disk space to be used for temporary files
Domain Group Policy:

Open Group policy object editor(see here)
Go to Computer Configuration->Administrative Templates -> Network -> Offline Files

Now you can see lot of configurable settings in the right side pane. Description of each setting can be found by double clicking on it.

Group policy Disable logoff synchronization

[ Friday, November 13, 2009 | 0 comments ]

Offline files synchronization that takes place during user logoff can be disabled in the following way.

Log in to the Domain Controller machine.

Open the Group policy object editor( see here)

Go to Computer Configuration -> Administrative Templated -> Network -> Offline files

Now the right side pane shows a list of settings related to offline files feature. Among this select "Synchronize all offline files before logging off" by double click and it will open a window like below.



Here select the box "Disabled" to disable synchronization of offline files during logoff.
Click on 'Apply' and close the windows.

How to make a network share available offline?

[ Tuesday, November 10, 2009 | 0 comments ]

Do the following to make a network folder available offline. Offline files should be enabled before running these steps. See the post How to enable offline files in Windows XP.

  • Open the network share and select the file or folder that you want to make available offline
  • Right click the share or file
  • Select "Make available offline"
  • Now the offline files wizard starts. It asks if the sub folders also should be made offline available or not.
  • Select one of these and then click next
  • Now Offline Files marks the files as offline available and copies the folders/files to the local offline cache folder.
  • The files/folders marked for offline availability will have a small arrow mark on the bottom left corner on their icons.

Administratively assigned offline files

| 0 comments ]

We know that in order to use a network folder in offline mode, we need to mark that folder for offline cache by right clicking and then selecting "Make available offline". But we can have few special folders which does not require this step and are still available offline. These files/folders are called administratively assigned offline files/folders. The list of these special folders can be configured using group policy.

  • Go to User Configuration -> Administrative templates -> Network -> Offline files
    Now on the right side pane you can see a list of settings.
  • Double click on the setting "Administratively assigned offline files" and Select the "Enabled" check box.



  • Click on "Show..."
  • Add the folders here
  • click OK and Apply
  • Close the windows

Disable logon synchronization by configuring Group Policy

| 0 comments ]

Administrators can disable logon synchronization for all users by configuring group policy setting. The steps are detailed below.

Log in to the Domain Controller machine.

Open the Group policy object editor( see here)

Go to the node Computer Configuration -> Administrative Templated -> Network -> Offline files

Now the right side pane shows a list of settings related to offline files feature. Among this select "Synchronize all offline files when logging on" by double click and it will open a window like below.



Here select the box 'Disabled' to disable synchronization of offline files during logon.
Click on Apply and OK and close the windows.

Offline Files: Access denied error

[ Monday, November 9, 2009 | 0 comments ]

If you are getting access denied when CSC tries to synchronize offline files, the reason could be the following.

CSC tries to synchronize offline files as long as the system is on, not just when the user is logged in. Suppose user A has marked some files for offline cache and logged off. Now user B logs in to the system. CSC still tries to synchronize the user A's offline files and prompts the user B for credentials. If user B does not supply the credentials or even if the supplied credentials does not have access to the share, CSC will generate access denied error.

Fix for this problem is available from XP Service Pack 1.

C:\Windows\CSC folder in Windows XP

| 0 comments ]

If you enable "Show hidden files/folders" in Folder view options, you can see a folder named CSC in C:\windows directory. This CSC folder shows various folders named d1, d2, d3 ,....,d8 and also some files having names prefixed with 0x000..

This CSC folder is where Windows keeps the the information about offline folders. If you don't know about offline files see this post "What is offline files"

This folder can be moved to some other location by editing the registry key DatabaseLocation under the following node.
HKLM\Software\Microsoft\Windows\CurrentVersion\NetCache



Offline Files in Windows XP

[ Sunday, November 8, 2009 | 0 comments ]

What is Offline Files ?

Offline files is a feature in Windows operating systems introduced from windows 2000. This is a very useful feature for laptop users who want to access network shares even when they are not connected to the network. For this you just have to select which folders you want to use in offline mode. These selected folders will be copied by Offline files to the local disk. When you disconnect your machine from the network, all the file access requests will be redirected to the local copies by Offline Files.

What's great about it? I can manually copy the files to my laptop!

Offline Files also handles synchronization. It tries to keep the local folders up to date with the network folders. When you copy files manually, you need to sync the files periodically to ensure that the files you have on local machine are the latest. Offline files takes care of this automatically. And the whole thing is transparent from the user point of view. The files you used to access with UNC path(ex: \\server\share\file1.doc) can be accessed using the same path even in disconnected mode. So all the applications which access these network shares will continue to work without causing any issues with file paths.

It also handles synchronization from client to server. Suppose you modified files on your machine in disconnected mode. When you connect the machine to network, Offline Files copies the modified files to the network share. Offline files can also identify synchronization conflicts in scenarios like some one else modifying the same files before you sync your changes.

What versions of windows have offline files feature?

Look at the table below.

Yes - Has 'Offline Files' feature
No -Does not have 'Offline Files' feature

Windows 2000
Yes
Windows XP Home
No
Windows XP Professional
Yes
Vista Home
No
Vista Home Premium
No
Vista Ultimate
Yes
Vista Business
Yes

How does it work? How can one access the network files in offline mode?

The logic behind Offline Files is very simple. When we mark a folder for offline cache, CSC copies all the files from the network share and stores them on the local disk. When the machine is disconnected from the network, CSC detects it and forwards all file access requests to the local copy.


I marked a folder \\server\share for offline cache. I am connected to the network. Which one is used when I try to access \\server\share\file1.doc ? Server copy? or the local copy?

Offline Files comes into picture only when the share is offline i.e. the network share is not accessible to the client(Either the client or server is disconnected from the network). So when you are online, all the file access requests go to the server as usual.

What operations can I do in offline mode?

Add/Delete/Modify files
Add Directories

All file operations that can be done while in online mode can also be done in offline mode, the only exception being deleting a folder.

What happens when I change/add/delete files in offline mode?

The modifications will be applied on the local copies. When the machine is reconnected to the network, Offline Files synchronizes the changes with the server copies.

What are the configurable options in offline files?

Few of the configurable options are in
My computer -> Tools -> Folder options -> Offline Files

What is 'Disk space for temporary cached files' option in Offline files settings?

This is the limit for temporarily cached files. Note that this in no way limits the space occupied by the cached files.

What is the maximum limit for the size of cached files?

There is no space limit. You can mark any number of folders for offline cache as long as you have free space on the drive having the CSC folder.


Note: Most of the articles in this site apply to Windows XP OS. For offline files in Windows Vista check the below site.

Windows Vista Offline Files

CSCCMD moveshare

| 0 comments ]

CSCCMD  is a client side cache utility which can be used for various Client Side Cache(CSC) management operations. Some of the operations we can perform using this tool are enabling/disabling offline files, pinning files for offline availability, listing the files/folders that are already cached, forcing a share to go offline etc. But all these operations are doable even without csccmd tool. We have UI to enable/disable offline files feature, we can also list the files in the local cache(it's using UI, not in command line though). Apart from these basic operations CSCCMD is also capable of doing some cache management operations for which there is no alternative way. Let's see one such operation.

Let's say we have pinned a share on machine A for offline availability. Now let's say the share is moved to machine B. But our offline files cache still points to machine A and tries to synchronize local cache by trying to contact machine A which is down. This will cause synchronization failures which we can see in the sync center.

In such a case one solution is to delete the local cache and mark the share on machine B for offline availability. This requires an additional effort and is not appropriate solution if the user has edited the files which are saved on the local cache but not yet synchronized with the server share. In such a case all the changes written to the local cache will be lost.

CSCCMD with moveshare switch can be used to solve this problem. This tool can update the local cache to point to the share on machine B and therafter CSC will do the synchronization with the share on machine B.
If there are any files changed locally, those also will be replicated on the share on machine B. Below is an example to update the cache with the new location of the share.


To move share from \\machineA\shareA to \\machineB\shareB run the below command.


csccmd.exe /moveshare:\\machineA\shareA \\machineB\shareB

Offline files synchronization

[ Thursday, November 5, 2009 | 7 comments ]

As mentioned in previous posts, when we mark a network share for offline availability, Offline Files copies the whole share to the local CSC folder. From that moment onwards Offline Files has to take care of the synchronization of the local copies with the network share, so that whenever we disconnect the machine from the network, we will have the latest version of the files available for offline use.

CSC( offline files) synchronizes the files with the server copies at regular intervals of time. During this, it checks with the remote server if any files have been changed. If so, it replaces the local copies with the latest versions of the server share.

Users can also trigger synchronization by the following way.

  • Right click on the share
  • Click on 'Synchronize'
Note that the option 'Synchronize' will not appear in the context menu for the files/shares which are not pinned for offline availability.

offline files in windows 2000

| 2 comments ]

Offline files feature was introduced with Windows 2000 operating system. The way it works in Windows 2000 is more or less same as that of Windows XP and almost all the posts in this blog apply to Windows 2000 too.