Click here to Skip to main content
15,896,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have been trying to develop a Windows Service using VB.Net, the service used to track the domain users & files who is accessing from a shared folder. I will be running this service in the Server which Files are shared and is a part of domain. I am able to get the changes occuring in the shared folders using FileSystemWatcher, but How do I get the domain user who is accessing these files?

Plz help me to resolve this issue.

Thanks,
Suhail
Posted

1 solution

You will need to access the file that is being chnaged, which you can get from the FileSystemWatcher, and look at it's properties. However, not all file types will store information about who last edited it. More information can be obtained from network logs but the file share would also need to have auditing configred.
 
Share this answer
 
Comments
tvsuhail 20-Mar-11 8:52am    
How can I get the domain user from network logs in Code for these changed files & folders. I have already configured Auditing for the shared folder
[no name] 20-Mar-11 10:46am    
Well... 1) Find logs 2) Open logs 3) read logs. What specifically are you looking for?
tvsuhail 21-Mar-11 3:01am    
I am trying to develop a Windows Service to Log the access of a shared folder with following information,
1. Domain Users, Files & Folders which these these users accessing and activity done in the shared folder(like Edit, Delete etc.)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900