Home > OS >  The Windows event ID
The Windows event ID

Time:09-18

Power outages, school every night about 11 want to set a plan in the Windows task, under the condition of a single network power if the power converter is automatic shutdown,
Now create the shutdown tasks and a single network terms are no problem, but I don't know the notebook when external power outage Windows event ID, unable to create a trigger, hope to know the teacher can tell me, thank you,

CodePudding user response:

You can't test? Unplug the power supply and see event viewer

CodePudding user response:

reference 1st floor WQR1994 response:
you cannot test it? Unplug the power supply and see event viewer
unplug see event viewer no response...

CodePudding user response:

Is not automatically refresh event viewer

CodePudding user response:

Windows event ID is not relevant events,
Notebook when external power outage (that is, the power status has been changed), Windows will broadcast the event, it is to pass the message message identifier
WM_POWERBROADCAST 536 (0 x218) send notification, event identifier for PBT_APMPOWERSTATUSCHANGE 10 (0 xa) ,
Rather than through the event log writing, that is to say, the power state changes, need to notify the application or service to deal with, can also be for each application or service that may affect
The behavior of the power supply change event to register: for system power has changed, can register the power setting GUID GUID_ACDC_POWER_SOURCE ,

CodePudding user response:

Try this one, just boot will have to check the power supply condition,
 
Log name: System
Source: Microsoft Windows - the Kernel - Power
Event ID: 521
Levels: information
User: SYSTEM
Description: the battery count change,

CodePudding user response:

The
reference my great god, 4/f, 666 response:

PBT_APM POWER STATUS CHANGE is not available cell count CHANGE!

CodePudding user response:

refer to the second floor for cicada written reply:
Quote: refer to 1st floor WQR1994 response:
you cannot test it? Unplug the power supply and see event viewer
unplug see event viewer no response...
if there is no event logs, can enable the battery percentage and operation, as for lack of battery percentage, suggest setting between 50 to 60,
Battery advice to enable the inadequate sleep,
Can also enable the battery percentage and the inadequate operation, a serious shortage of battery percentage suggest setting between 20 and 30, a serious shortage of battery advice to enable shutdown or dormant,
  • Related