Discussion Locked

How to disable opportunistic Locking in

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to know the exaxt entry I need to put in the Windows NT 4.0 Registry to disable opportunistic locking. Here's where it goes in the registry and I've also included the link to Microsoft's support KB that tries to explain it. Thanks!
\HKE_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

http://support.microsoft.com/support/kb/articles/Q129/2/02.asp

13 replies

by bearwitme

We created a .Reg file with the following entries..
[HKEY_LOCAL_MACHINE\SYSTEM\CURRENTcONTROLsET\SERVICES\LANMANWORKSTATION\PARAMETERS]
"Use OpportunisticLocking"=dword:00000000
"UseNtCaching"=dword:00000000
"UseUnlockBehind":dword:00000001Hopehis helps..

Connie

by joynerm

This is what I have been using. Hope this helps.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters

EnableOpLocks Type=Reg_Dword Value=0 (Decimal

Microsoft pointed to the same Q article as you did.

by theswede

This can also be done through application of a policy. Once you have your policy restriction setup and saved, you can open the registry and stop this locking. If you want more information just email me.

by jmcknight

It is very difficult to track these as non Windows NT clients are recorded in the event log of the domain controller that attemps to validate the account and Windows NT logon attempts are recorded locally.
You can install the Netlogon.dll from the checked build of Service Pack 3 on your PDC to create a log file for all attemps.

After downloading the checked build of the service pack, extract (SP_Name.exe /x) the Netlogon.dll.
Navigate to the %SystemRoot%\System32 folder and rename Netlogon.dll to Netlogon.fre.
Copy the checked version of Netlogon.dll to the %SystemRoot%\System32 folder. Edit:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\DBFlag

and change DBFlag to 0x04 to record the logon or to 0x20000004 to recordthe logon and a time stamp.

Shutdown and restart the PDC.

Confirm you have a %SystemRoot%\Debug folder that contains a Netlogon.log file.The error codes in the log file are:

Error Code M e a n i n g
0xC0000234 User logon with Account Loc

by jmcknight

If your clients' experience delay when saving a document to a server share, it may be because the client is ignoring the server's oplocks break request. If this is pervasive over many clients, disable opportunistic locking on the server by editing:
HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/LanmanServer/Parameters

Add Value EnableOplocks as a REG_DWORD. Set it to 0.

You will need to reboot your server for this change to take effect

This discussion is closed to new replies.