Using .Net How to check which users open resources (files / domains) on a remote server?

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.

+4
source share
1 answer

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.

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.

+4
source

All Articles