Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you check leasingmode setting through the program?

Vince Wen

Programmer
Jun 15, 2024
27
HK
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?
 

Part and Inventory Search

Sponsor

Back
Top