Using .Net, how can I check which users in our domain open resources (files, folders) on a remote Windows server?
If you have C # examples, I would be grateful.
I think you can do this using the Win32_ConnectionShare WMI Win32_ConnectionShare . In this discussion, there is an answer to a simple C # sample that should get you started.
Win32_ConnectionShare
Edit: Just realized that the best solution is NetFileEnum . If you look at the PInvoke page for here , you can find a basic C # sample.