共用方式為


Monitoring file/directory creation/deletion in MOM

If you want to monitor file/directory creation or deletion you can create a custom WMI provider for that. Example:

SELECT * FROM __InstanceDeletionEvent

WITHIN 60

WHERE TargetInstance ISA ‘CIM_DirectoryContainsFile’

AND TargetInstance.GroupComponent = ‘Win32_Directory.Name=”C:\\\\Temp\\\\”’

For more details see: https://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0404.mspx and Brian’s WMI whitepaper: https://brianwren.members.winisp.net/WMI/WMI%20Events%20in%20MOM%201.2.doc

 

BTW, I am publishing this for the first time from Word 2007 Beta 2.

Comments

  • Anonymous
    May 28, 2006
    And you had no trouble with publishing the right date from Word 2007?

    Regards,
    Stefan

    By the way I like your posting about using perl with MOM. A long time ago I used an open source monitoring tool completely written in Perl. You should have a look at http://bigsister.sourceforge.net/. I even programmed (Delphi) a tool for that called BStray ;-)

    Regards,
    Stefan Stranger
  • Anonymous
    May 29, 2006
    The date AFAIK when blogging in Word 12 Beta is something like 3h ahead (blogs.technet is community server 2.0). I don't care much about it, though it clearly is a but. Besides I have problems uploading pictures (due to my FTP site's configuration), but I should work it out sooner or later:)

    Your project looks really interesting I will try to have a deeper look when I get the time to do so.
  • Anonymous
    May 30, 2006
    Na forum pojawił się ostatnio wątek c#&GoF. A ja ostatnio w związku z moimi  zajęciami z wzorców...