By default, opportunistic locking is enabled for server message block (SMB) clients that run one of the Windows operating systems that is listed in the “Applies to” section. Opportunistic locking lets clients lock files and locally cache information without the risk of another user changing the file. This increases performance for many file operations but may decrease performance in other operations because the server that grants the opportunistic lock must manage the breaking of that lock when another user requests access to the file.
Notes for Windows Vista
- 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 fails.