How to get user name who fired a event in SystemFileWatcher?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anybody have a C# code example of how to get the user name that
added,modified or deleted a file? I see that SystemFileWatcher will recieve
events when a file is added, modified and deleted.

That's cool but I also need to know the user name that added, modified or
deleted the file.

I don't want to overload the event log. So, I'd like to have a
SystemFileWatcher solution.

Thanks,

jreed
 
I know it's possible to set a domain policy to log the user name and what
file has been added, modified or deleted in Windows 2000 and 2003. This
policy will write to the event log. This could tell me what file was modified
and who did it. But I don't want to do this because my event log would get
huge.

I'd rather be able to know through a mechanism like SystemFileWatcher.
SystemFileWatcher get's 90% of the way thier. But I still need to know the
user name that added, modified or deleted the file.

If windows domain policy can do it then I should be able to also accomplish
this through code.

Please Help,

jreed
 
Back
Top