确定是谁在访问一个文件上的共享文件夹在Windows 2008 R2服务器/ Windows 7的 [英] Determining who is accessing a file on a shared folder in Windows 2008 R2 server / Windows 7

查看:156
本文介绍了确定是谁在访问一个文件上的共享文件夹在Windows 2008 R2服务器/ Windows 7的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找到一种方法来确定一个共享文件夹中的哪些文件被访问,以及由谁。像净文件和网络会议命令可以给这个信息,以及在Sysinternals的PSFile.exe,但我无法弄清楚如何以编程方式做到这一点。我已经找到一种方法,以确定谁是通过WMI访问的份额,但它并没有显示正在访问哪些文件。有谁知道如何在C / C ++ / C#这样做吗?任何及所有帮助将大大AP preciated。

I need to find a way to determine what files on a shared folder are being accessed, and by whom. Commands like "Net Files" and "Net Session" can give this information, as well as PSFile.exe in SysInternals, but I cannot figure out how to do this programmatically. I have found a way to determine who is accessing a share via WMI, but it does not show what file is being accessed. Does anyone know how to do this in C / C++ / C#? Any and all help will be greatly appreciated.

推荐答案

NetFileEnum 3级似乎是你在找什么。

NetFileEnum level 3 seems to be what you're looking for.

这篇关于确定是谁在访问一个文件上的共享文件夹在Windows 2008 R2服务器/ Windows 7的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆