
已棄用的解決方案:僅適用於早於 Windows 10 的 Windows 版本
發生事件 - 當您從睡眠狀態喚醒時,「Power-Troubleshooter」來源會在系統日誌中記錄事件代碼 1。
Windows 10 行為的可能解釋:
Windows 10 中的預設處理是將關閉視為休眠,因此啟動時會從休眠中恢復,並且不會像重新啟動那樣從頭開始 -@AFH
我已經測試過,只有重新啟動 Windows 10 時作業系統會觸發我所做的操作。
即使我選擇“啟動時觸發”,該任務似乎也沒有檢測到 Windows 10 已啟動。
我使用的是 Windows 10 家用版。
我可以在哪裡獲得協助?
我提供的測試結果:
上次運行結果:0x103
我用於測試的匯出任務:Chrome 預加載.xml
<?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>