Windows 8 and 8.1 Forums


Task Scheduler not running task on boot

  1. #1


    Posts : 5
    Windows 8 Consumer Preview

    Task Scheduler not running task on boot


    Hi! It's super simple: I'm trying to run a script every time my PC turns on. I said, let's use Task Scheduler. I found the correct event in Event Viewer (Kernel-General, Event ID: 12) and created a task via "Attach Task to This Event" right-click option.

    But, it didn't trigger this morning.

    Click image for larger version
    Click image for larger version

    I didn't change any of the default task settings; my wake from sleep task runs perfectly, no issues. If anybody is a Task Scheduler guru, here's the XML from the created task:

    Code:
    <?xml version="1.0" encoding="UTF-16"?><Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2016-01-18T11:43:09.4352365</Date>
        <Author>IBRAHIM\Ibrahim</Author>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="System"&gt;&lt;Select Path="System"&gt;*[System[Provider[@Name='Microsoft-Windows-Kernel-General'] and EventID=12]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>IBRAHIM\Ibrahim</UserId>
          <LogonType>InteractiveToken</LogonType>
          <RunLevel>LeastPrivilege</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>C:\test.vbs</Command>
        </Exec>
      </Actions>
    </Task>
    Is this the right event to trigger something on boot, Event 12?

      My System SpecsSystem Spec

  2. #2


    Posts : 5
    Windows 8 Consumer Preview


    I changed it to "on startup" and it worked!
      My System SpecsSystem Spec

  3. #3


    Austin TX metro area
    Posts : 640
    Windows 7 Pro 64bit [MS blue-disk set]


    Some startup and some upon-log-on tasks I've also set do only when internet's connected -- updates for the most part.
    Last edited by RolandJS; 22 Mar 2016 at 12:30.
      My System SpecsSystem Spec

Task Scheduler not running task on boot
Related Threads
I faced quite an odd issue. I created task for starting Transmission-QT at system start. I enabled Task History and there all seems fine. 64807 But really program doesn't start. In "Last run result" field of Task Scheduler I get a strange error 0x41301. 64806 I googled it and...
Task scheduler in Performance & Maintenance
Hi all; I am new to the forum and I appreciate any help thanking you in advance. I want to schedule a task that can copy files from a folder on my PC to an external hard network drive, I have a windows 8.1 , the folder is on my : This PC\documents\folder and the external drive is on network\WD ...
Intel(R) System Behavior Tracker Collector Service Intel Energy Checker Energy Server Intel Energy Checker Energy Server Service how can I or can I stop this from running everytime I boot my laptop? is this safe to End task on task manager?
Does anyone know what the task "CreateObjectTask" is coming from? I can't find it anywhere. https://www.dropbox.com/sc/cull9jreyk7s5gr/AADtnA2TRmshbLHDDi_4wPLQa
Task Scheduler in Tutorials
This Tutorial will show you how to create a Scheduled Logon Task. You should, ideally, perform this Tutorial from within an account with administrative privileges. Section ONE Open Task Scheduler. Click Create Task...
I've added task manager to my scheduled tasks at logon. Everywhere I google, they say to put the /min or -minimized arguments in it to launch it minimized, except neither option works for me. Task Manager launches, but just sits there on my desktop. Is there a new argument for minimized in...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook