如何通过用户名监控文件服务器上的文件访问和更改?

发布于 2024-07-08 18:02:54 字数 349 浏览 4 评论 0原文

我被要求找到一种方法来监视公司共享文件服务器(简单的Windows共享目录)上特定文件夹中文件的更改(修改、重命名、删除、移动)。 我用 C# 编写了一个简单的应用程序,它使用 FileSystemWatcher监控这些更改并通知特定的电子邮件地址。

我现在想知道的是如何找出进行这些更改的用户/计算机的名称/IP。 有任何想法吗?

作为编写自己的软件的替代方案,是否有任何好的(可能是免费的)软件支持此功能?

I was asked to find a way to monitor changes (modification, renaming, deletion, moving) of files in specific folders on the company's shared file server (simple windows shared directory). I wrote a simple app in C# that uses FileSystemWatcher to monitor these changes and notify a particular email address of them.

What I'd like to know now is how to find out the name/IP of the user/computer who made these changes. Any ideas?

As an alternative to writing my own software, are there any good (possibly free) software that supports this functionality?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

药祭#氼 2024-07-15 18:02:54

使用审核 - 当您获取文件/文件夹的属性时,它位于安全选项卡上。 您可以指定要审核哪些用户的访问类型。 您还必须使用安全策略 mmc 管理单元打开审核。 审核最终将记录在安全日志中。

MS 的详细说明:http://support.microsoft.com/kb/310399

如果您愿意,然后您的 C# 应用程序可以从安全事件日志中选取事件。

Use auditing - it's on the security tab when you get the properties of file/folder. You specify which users you want audited for what kind of access. You also have to turn on auditing using the security policy mmc snap-in. The audits will end up in the security log.

Detailed instructions from MS: http://support.microsoft.com/kb/310399

If you want, your C# app could then pick the events out of the security event log.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文