I was somehow under the impression that oplocks only applied to SMB v1. If you are using SMB v1, you’ve got a lot of issues going on…
Anyway, use the PS cmdlet "Set-SMBClientConfiguration" which provides the option "UseOpportunisticLocking".
It can have a performance impact.
Thanks.
Regards,
Michael B. Smith
Managing Consultant
Smith Consulting, LLC
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2Bi2jZ29SgzPPfioNFP2za4M5B5xWY6wD_LmrGLGu3EbvA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/73565c616f784293bd35b5295e82a2b5%40smithcons.com.
With the SMB3 Leasing Mode change introduced in Windows 10 build 16215 and Windows Server 2019, there is no longer a need to disable SMB2 and Oplocks.
Setting SMB3 Leasing Mode to none is done on the server via PowerShell with admin rights using the following command
Set-smbshare -name “(Name of the shared folder)” -LeasingMode none
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/73565c616f784293bd35b5295e82a2b5%40smithcons.com.
I was somehow under the impression that oplocks only applied to SMB v1. If you are using SMB v1, you’ve got a lot of issues going on…
Anyway, use the PS cmdlet "Set-SMBClientConfiguration" which provides the option "UseOpportunisticLocking".
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/73565c616f784293bd35b5295e82a2b5%40smithcons.com.
Set-SMBClientConfiguration is executed on the client computer – that is, the computer requesting the network files.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2Bi7QP1VKxPQq6HjKWBg4ta8mZ1CM-XanrU1zFwjO0zBew%40mail.gmail.com.
Set-SMBClientConfiguration is executed on the client computer – that is, the computer requesting the network files.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/b1c154ccb4d54a4eb6c45597a122e7d8%40smithcons.com.