Event Handler Between Reboot states using Powershell
hi,
i need writing event handler powershell script meet following requirement:
1. continue upon restart
2. continue upon sleep state
3. continue upon hibernation state.
one way can see meed 3 of requirements use permanent wmi consumer watch event log each of these type of events , perform action.
http://learn-powershell.net/2013/08/14/powershell-and-events-permanent-wmi-event-subscriptions/
it best make filter each type of event rather throwing 1 filter. depending on os, event ids may different, nothing quick query via search engine find you.
boe prox
blog | twitter
poshwsus | poshpaig | poshchat | posheventui
powershell deep dives book
Windows Server > Windows PowerShell
Comments
Post a Comment