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

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2