Well what you are describing is that you want something that is Event Driven. That is that the logging of the action (Create, Modify, Delete etc) triggers the data you want to capture. Windows has this ability built into the Event Log.
Say you wanted to write a script that monitored a files system, you'd either have to write something that was extremely low level (i.e. hooked into MTFS itself) or you'd have to have a script that monitor hundreds, or thousands or more of objects all them taking up valuable resources.
So since Windows has a built-in way of capturing the data you want, then why not just use it. It is unfortunate that the windows Security log is so poor becuase you could just use it. unfortunately it is quite hard to manage. There are lots of 3rd party apps with agents that can do exactly what you want. I think one of the good ones is called SNARE. It might be best if you look into this.
Cheers, Jeremy.
"C.K" wrote:
[Quoted Text] > Can i just monitor about File Modify/Delete Action?not all Event Log. > > I have another script to monitor Print Log by Object.NextEvent > not monitor Event-Log,just monitor Win32_PrintJob > and I found some interest script from Script Center,here is the URL > http://www.microsoft.com/china/technet/community/scriptcenter/filefolder/scr> ff46.mspx > that can get the event when file was Created/Modified/Deleted > but just for one folder or file > > I am going to find some way let it working as Win32_PrintJob > when the event happened,return [who,when,targetName,...] > > excuse me such awful english. > > >
|