Notes for Windows Vista and later Operating Systems (i.e. Windows 7)
- The opportunistic locking registry keys are valid only for traditional SMB (SMB1). You cannot turn off opportunistic locking for SMB2. SMB2 was introduced in Windows Vista to enable faster communication between computer that are running Windows Vista and Windows Server 2008 or Windows Server 2008 R2.
- If you disable opportunistic locking, the offline files feature in Windows Vista or Windows 7 fails.
The location of the client registry entry for opportunistic locking has changed from the location in Microsoft Windows NT. In later versions of Windows, you can disable opportunistic locking by setting the following registry entry to 1:
Default: 0 (not disabled)
You can also deny the granting of opportunistic locks by setting the following registry entry to 0:
Default: 1 (enabled)
In addition, you can use the following values to tune opportunistic locking for Windows-based computers that have granted opportunistic locks.
The following value specifies the minimum link throughput that the server allows before it disables raw and opportunistic locks for this connection:
Article ID: 296264 - Last Review: Apr 4, 2011 - Revision: 1