there are some requirment that: when the app pool died(inculde manual stop),how to make it runing automaticly.there also requried using script and don't use schedueld tasks,and are there any IIS monitor can call script on it's own initiative? if not, it can achieve using IIS WMI or IIS ADSI programic...