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: http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0404.mspx and Brian’s WMI whitepaper: http://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.

Advertisements

~ by alipka on May 28, 2006.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: