[Last Call] Learn how to a build a cloud-first strategyRegister Now


Can't find registry key to disable OPlocks(opportunistic locking)

Posted on 2011-10-10
Medium Priority
Last Modified: 2012-05-12
I'm having a problem with a server side application that randomly freezes up on all workstations. I contacted the vendor and they suggested disabling opportunistic locking. They sent me the location of the key and I've also looked it up on Microsoft but the key OplocksDisabled & EnableOplocks are not present.

From Vendor:

(Workstation registry entry)
1.      OplocksDisabled REG_DWORD 0 or 1
2.      Default: 0 (not disabled)
3.      Set to "1"
Note: The OplocksDisabled registry value configures Windows clients to either request or not request opportunistic locks on a remote file.
(Server registry entry)
1.      EnableOplocks REG_DWORD 0 or 1
2.      Default: 1 (Enabled by Default)
3.      Set to "0"

Here are snapshots of regedit:

 Windows XP
 Server 2003

Server 2008 R2
Can someone help me disable opportunistic locking on my Workstations and Servers. Thanks.
Question by:mlsbraves
  • 2
LVL 13

Accepted Solution

themrrobert earned 1600 total points
ID: 36944508
Add both keys and then Set enabled = 0   and  oplocksdisabled = 1

afterwards restart the program, maybe even the computer.

then I would search through the registry for Keys named OplocksDisabled and the other one as well, to make sure they aren't in a different branch.


Author Comment

ID: 36944618
Would there be an easy way to make a .reg file so I can easily merge this into the registry?

Author Comment

ID: 36944706
Would this be the correct syntex?:

Windows Registry Editor Version 5.00


Open in new window

LVL 66

Assisted Solution

johnb6767 earned 400 total points
ID: 36945019
I am partial to cmd line......

reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters" /v "OplocksDisabled" /t reg_dword /d "0x1" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "EnableOplocks" /t reg_dword /d "0x0" /f

Or .reg format.....

Windows Registry Editor Version 5.00


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question