Is there a way to query SMB share leasing mode directly through the program? To be clear, I don't want to do this through a powershell script, as there are permissioning issues around this (simply put, I don't have the permission).
I've dug around quite a bit and I think the answer is no. But wanted to double check.
If so, is there a creative way to trigger oplocks then check if 'file access is denied' to indirectly determine if leasingmode is set to none?
I've dug around quite a bit and I think the answer is no. But wanted to double check.
If so, is there a creative way to trigger oplocks then check if 'file access is denied' to indirectly determine if leasingmode is set to none?