Menu +

Search Posts

Configuring an Automatic Resolution Policy

An automatic resolution policy for Offline Files is implemented by adding a registry value for each network share for which you wish to control synchronisation, then specifying the policy for automatic resolution.

  1. Click Start, type regedit in the Start Search box, and then press ENTER
  2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\NetCache 
  3. On the Edit menu, point to New, and then click Key. Type SyncConflictHandling, and then press ENTER
  4. Right-click SyncConflictHandling, point to New, and then click Expandable String Value. Type the path of the network share as the value name (for example \\servername\share)
  5. Right-click the value name, and then click Modify. In the Value data box, enter a value listed in the table below, and then click OK

The possible values for SyncConflictHandling and a description of each value is listed is this table:

Value

Description

0

No resolution. The conflict is unresolved. This allows the conflict to be processed by other handlers in the system.

1

Keep the local state. This overwrites the remote copy with the local copy’s contents. If the local copy was deleted, this deletes the remote copy on the server.

2

Keep the remote state. This overwrites the local copy with the remote copy’s contents. If the remote copy was deleted, this deletes the local copy in the Offline Files cache.

3

Keeps both copies. Note that this resolution is valid only for sync conflict states where both the server and client copies exist and where at least one of the items is a file. This resolution type is not available when one of the items has been deleted or both items are directories.

4

Retains the state of the latest operation as determined by last-change times of the items in conflict. If the local item was deleted, the time of deletion is used for comparison.

5

Write an entry to the sync conflict log and perform no further attempts at resolving the conflict. The interactive user will resolve the conflict through Sync Center at a later time.

6

Do not resolve the conflict. Do not record an entry in the sync conflict log

7

Cancel the synchronization operation

When added to the Registry, it will look something like this:


To test that the policy is working update a file at multiple locations when the file is offline (for example, delete the file in one location, but make changes to it in the other location). Connect back to the network and initiate a synchronisation operation (via Sync Centre) for the network share. Windows will trigger a conflict in the synchronisation process when it synchronises the file. Your policy should kick in and Sync Centre should automatically handle the conflict.

Implementing a Policy

So which policy should you implement? This will depend on the share and the type of client machine. Based on the descriptions of the possible values, the default policy is 5, which requires the user to manually resolve conflicts.

In most cases, laptops have a one to one relationship with a user and it will be their primary device. Those machines could then use a policy of 1 (keep the local state) thus preferring changes made on the laptop rather than other computers. Of course, what’s right for me might not be right for you, so I recommend testing and be certain of your choice before implementing.

To deploy the policy you could use a script or a tool such as Group Policy Preferences:

  1. Create a Group Policy Object and apply it to a laptop OU or open an existing GPO that applies to your laptops
  2. Navigate to Computer Configuration / Preferences / Windows Settings / Registry

  3. Create a new registry item – HKLM should be the default Hive, add Software\Microsoft\Windows\CurrentVersion\NetCache\SyncConflictHandling to the Key Path

  4. In Value Name, enter the UNC path to the share you want to apply the policy to
  5. Change Value Type to REG_EXPAND_SZ
  6. Enter a numeric value from 0 to 7 (1 or 2 would be most common)
  7. Repeat for each share you want to manage

962 Total Views 1 Views Today

Leave a Comment

Leave a Reply