How to call a powershell script only after an unscheduled outage
Posted on 2013-11-01
I want to be notified when a machine has had an unscheduled outage, without scanning the event log everytime the machine is restarted. Windows knows when it has had an unscheduled outage an I'd like to tap into that to kick off the powershell script.
I don't want to scan the events log because the machine may have had an unscheduled outage earlier in the day and then I would receive a false positive the rest of the day.