Retirado de: Executa um script quando o Windows reinicia a partir do estado de suspensão / hibernação?
On an event - In the system log, the "Power-Troubleshooter" Source will log an event code of 1 when you wake up from a sleep state.
The default handling in Windows 10 is that shut down is treated as hibernate, so start up resumes from hibernation and does not start from scratch, as restart does - @AFH
Eu testei isso, somente em um reinício do sistema operacional Windows 10 acionaria a ação que eu fiz.
Mesmo se eu escolho Trigger para ser Na inicialização, parece que a tarefa não detecta que o Windows 10 foi iniciado.
Estou usando a versão inicial do Windows 10.
Onde posso obter ajuda?
Resultados da última execução: 0x103
Tarefa exportada que usei para testar: Preload.xml do Chrome
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2017-06-21T13:05:39.6050683</Date>
<Author>DESKTOP-6519MDL\vaida</Author>
<URI>\Chrome preload</URI>
</RegistrationInfo>
<Triggers>
<BootTrigger>
<Enabled>true</Enabled>
</BootTrigger>
<EventTrigger>
<Enabled>true</Enabled>
<Subscription><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Power-Troubleshooter'] and EventID=1]]</Select></Query></QueryList></Subscription>
</EventTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-21-1438360845-2802100473-3542379989-1002</UserId>
<LogonType>Password</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>true</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT30S</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"</Command>
</Exec>
</Actions>
</Task>