Vista Synchronization Errors

Initial Steps Taken
Like many people troubleshooting this problem, I initially thought it was due to opportunistic locking on the SBS 2003 server.  I ensured opportunistic locking was turned on for the SBS 2003 server (using, rebooted the server, and the problem continued.  (For server configuration, you may also want to take a look at

Problem Compounds
Eventually another laptop was purchased for a new employee and we tried the same process with this computer.  Same problem.  I assumed it was then probably a problem with the server. However, I then used my own laptop and did the same process, only now the files synchronized!

All three laptops were using Vista Business.  The two customer laptops were Dell laptops with Vista preinstalled.  My laptop is a Dell laptop, but I installed Vista from scratch (it came with XP).

A solution is found!
So now I’m back to square one, a problem with the workstations.  I then began perusing the registry on the workstations on a whim and found that there was a registry setting on both of the customer laptops (but not on mine):

The following key was set to 1:
The workstation was preconfigured to turn off opportunistic locking! 
After changing this key to 0 and restarting, the synchronizations were all successful.  Also, it appears that if the key is missing (such as on my laptop), that it will default to oplocks being enabled.
What was the most frustrating was that everywhere I looked for a solution on this problem, everybody found their solution by turning on opportunistic locking on the server.  There appeared to be nobody else in my shoes, which of course is probably not the case!
I hope this helps someone who is dealing with the same problem


Powered by Facebook Comments

Tags: , , June 25th, 2008 Posted in Technology

11 Responses to “Vista Synchronization Errors”

  1. Vista Offline Files and SMB Opportunistic Locks « Just Another Sysadmin Says:

    [...] must also thank Rainier Day for his post on his struggles with Opportunistic Locking. He was hit from the other side: The server-side [...]

  2. JustAnotherSysadmin Says:

    Hi Rainier,

    Thanks for that info. I had noticed the client-side registry setting in the Microsoft KB, but had not actually come across any Vista workstations that had been set out-of-the-box to have OpsLocks disabled there!

    I have updated my post to reflect that.



  3. Daryl Says:

    Most people have been focusing on
    LanmanServer (this just grants opslock) just as you have stated

    LanManWorkstation requests opslock on a file.

    If you create a dword key called EnableOpslock and set it to 1 in LanManWorkstation. You should get the same effect as setting it in MRXSmb

    I am currently working on a Group Policy download issue were Opslock is disabled on the client end and is causing 2-byte downloads of the register.pol file.

  4. David Wolfrom Says:

    Thanks, Daryl. But what happens when OpLocksDisabled is set to true (1) and EnableOpLocks is also set to true (1)? Which one takes precedence?

    The machines that I found this on were Dell Optiplexes with Vista pre-installed. Other machines (mostly XP) seem to have no registry key at all. I would think to be safe you would want to set both keys in the GPO script.

  5. Daryl Says:

    To be honest, I am not sure which one will take precedence. The MRXSmb-DisableOpslock tells the client either to request or not request opslock when accessing a shared file. The LanmanWorkstation handles the clients request from what I have gathered during my research.

    If the registry key is not present then the setting it represents is enabled by default. In case of DisableOpslock, it’s disabled (0)

    In my case both keys were present and set to disabled.

    Also from what I gathered the keys (DisableOpslock and EnableOpslock) are not present by default

  6. Marek Says:

    What was your initial problem here you were trying to defeat?
    I have a Vista PC that Offline files is indeed working on, however if changes are made to an existing document, then they happen to the cached file and aren’t updated until a manual (or auto) sync. If the file is open on another PC, they are not advised, suggesting that is happening from the cache too.
    Any ideas?

  7. David Wolfrom Says:

    The initial problem was that no offline files were being made available to Vista clients. Sounds like it’s different than the one you are having.

  8. Jeff Bales Says:

    I spent hours searching down syncing issues with a customer that recently switched from XP Pro to Vista Business with SBS 2003, and found your posting. It worked. Thanks for posting!

    I also have a customer that is having sporadic file saving error messages that appear to be locking related. I had him change it to a ’0′ and I hope it solves his problems.

    Coincidentally, they all have Dell laptops, desktops and servers. I wonder if Dell is the only one that configures Vista with locking enabled.

  9. David Wolfrom Says:

    Glad to have helped! I think it’s the Broadcom drivers.

    It’s also an issue on Windows 7 using the Dell based Broadcom drivers.

  10. Vista Synchronization Errors « The Balesgroup Business and Tech Blog Says:

    [...] Fortunately after Googling several different keywords, I found this gem that described my situation to a T [...]

  11. Windows 7– Offline files and SMB shares « Kevsters Blog Says:

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).