none
Failed to schedule Software Protection service for re-start at 2113-01-12T17:08:03Z. Error Code: 0x80041316 every few seconds. RRS feed

Answers

  • Delete the 3 files from C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform.

    From the Windows DVD or ISO file go to Sources and use 7-ZIP to extract the install.wim file.

    Copy the 3 original files from extracted install.wim (Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform) to a suitable location and add to each of them the .xml extension.

    Import the 3 .xml files in Task Scheduler - Microsoft - Windows - SoftwareProtectionPlatform and restart the system.

    Hope it helps!


    Dan Visan

    • Marked as answer by Tom Mac Wednesday, May 22, 2013 6:15 PM
    Wednesday, May 22, 2013 5:40 PM
  • Hi Andre

    That Fixed my problem But I need to Change the Two File extracted ( xml ) file and import then with the task scheduler.

    I Now Know what happened I refreshed my system and when I did it brought the files in with out the extensions.

    Check original files they work fine with the extensions changed.

    Thanks Thomas

    • Marked as answer by Tom Mac Friday, February 8, 2013 8:53 PM
    Friday, February 8, 2013 8:53 PM
  • nice to hear that my trick worked for you :)

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Tom Mac Wednesday, May 22, 2013 6:14 PM
    Friday, February 8, 2013 9:48 PM
    Answerer

All replies

  • Hi,

    Could you please tell me how did you create the task schedule?

    Try to create a bat file or script to restart Software protection service:

    Net stop sppsvc

    Net start sppsvc

    Then recreate task schedule to see if it works.

    The error you can refer:

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa383604(v=vs.85).aspx

    0x80041316

    The task XML contains an unexpected node.

    Dose the schedule task contain any xml file


    Leo Huang
    TechNet Community Support

    Friday, February 8, 2013 3:00 AM
    Moderator
  • I Did not create the task schedule it from software only.

    I run start & stop with no change.

    I can't recreate the schedule cause I don't know what created it

    License Validation Is one of the xml files that don't work.

    Also SvcRestartTask Is the Other one They error the task scheduler.

    If I remove them then the error changes To

    Failed to schedule Software Protection service for re-start at 2113-01-15T15:08:18Z. Error Code: 0x80070002.

    I Hope this helps I am still trying locate the problem. 

    Thomas

    Friday, February 8, 2013 3:13 PM
  • 0x80041316 = SCHED_E_UNEXPECTEDNODE

    The File for the scheduled task is damaged.

    Delete the file for the Software Protection task from

    C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform

    and extract the file from your Windows DVD:



    http://blog.nirsoft.net/2009/09/17/how-to-extract-missing-system-files-from-the-dvd-of-windows-7vista/


    "A programmer is just a tool which converts caffeine into code"

    Friday, February 8, 2013 7:44 PM
    Answerer
  • Hi Andre

    That Fixed my problem But I need to Change the Two File extracted ( xml ) file and import then with the task scheduler.

    I Now Know what happened I refreshed my system and when I did it brought the files in with out the extensions.

    Check original files they work fine with the extensions changed.

    Thanks Thomas

    • Marked as answer by Tom Mac Friday, February 8, 2013 8:53 PM
    Friday, February 8, 2013 8:53 PM
  • nice to hear that my trick worked for you :)

    "A programmer is just a tool which converts caffeine into code"

    • Marked as answer by Tom Mac Wednesday, May 22, 2013 6:14 PM
    Friday, February 8, 2013 9:48 PM
    Answerer
  • I am having the same problem, but unfortunately, since I upgraded online to Windows 8 Pro from Windows 7 Home Premium, I do not have an installation DVD nor can I find install.wim anywhere on my system. Any ideas? Thanks.
    Monday, May 6, 2013 8:36 PM
  •  Any ideas? Thanks.
    Download the 90 day Enterprise Trial ISO, this ISO include a install.wim where you can get the correct files.

    "A programmer is just a tool which converts caffeine into code"

    Tuesday, May 7, 2013 5:19 AM
    Answerer
  • Delete the 3 files from C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform.

    From the Windows DVD or ISO file go to Sources and use 7-ZIP to extract the install.wim file.

    Copy the 3 original files from extracted install.wim (Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform) to a suitable location and add to each of them the .xml extension.

    Import the 3 .xml files in Task Scheduler - Microsoft - Windows - SoftwareProtectionPlatform and restart the system.

    Hope it helps!


    Dan Visan

    • Marked as answer by Tom Mac Wednesday, May 22, 2013 6:15 PM
    Wednesday, May 22, 2013 5:40 PM
  • you posted what we already know and what we already wrote. So this is nothing new (entropy is zero ;)

    "A programmer is just a tool which converts caffeine into code"

    Wednesday, May 22, 2013 6:36 PM
    Answerer
  • many thanks,

    this info solved my problem!

    Cesare

    Thursday, July 18, 2013 7:13 AM
  • This is also one of several errors I get. I seem to remember I got part way though this fix before (got 7-zip and extracted, I think), but the got diverted. But now when I go to install.wim, I can't extrat it - I get Can't open as Archive. Under Properties, it is marked as Read and the attributes can't be changed - Access Denied.

    I got as far as this a few minutes ago an everythign froze, so hope it works this time!!

    • Proposed as answer by akermitb Friday, July 17, 2015 5:19 PM
    • Unproposed as answer by akermitb Friday, July 17, 2015 5:19 PM
    Wednesday, December 18, 2013 2:52 PM
  • OK - I do this, then the bloody thing comes back a few days later (win 8.1). WHY????!!!
    Monday, December 23, 2013 5:56 PM
  • for anyone looking for the xml files, and don't feel like downloading the 1.7gb AIK, then extracting the 3.3gb install.wim file to a folder by mounting with ImageX, then extracting the 3 files and adding the .xml extension, here you go:

    SvcRestartTask:

    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Source>$(@%systemroot%\system32\sppc.dll,-200)</Source>
        <Author>$(@%systemroot%\system32\sppc.dll,-200)</Author>
        <Version>1.0</Version>
        <Description>$(@%systemroot%\system32\sppc.dll,-201)</Description>
        <URI>\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask</URI>
        <SecurityDescriptor>D:P(A;;FA;;;SY)(A;;FA;;;BA)(A;;FA;;;S-1-5-80-123231216-2592883651-3715271367-3753151631-4175906628)(A;;FR;;;S-1-5-87-2912274048-3994893941-1669128114-1310430903-1263774323)</SecurityDescriptor>
      </RegistrationInfo>
      <Triggers>
        <CalendarTrigger>
          <StartBoundary>2013-08-23T14:50:01Z</StartBoundary>
          <Enabled>true</Enabled>
          <ScheduleByDay>
            <DaysInterval>1</DaysInterval>
          </ScheduleByDay>
        </CalendarTrigger>
      </Triggers>
      <Principals>
        <Principal id="NetworkService">
          <UserId>S-1-5-20</UserId>
          <RunLevel>LeastPrivilege</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>false</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>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
        <Priority>7</Priority>
        <RestartOnFailure>
          <Interval>PT1M</Interval>
          <Count>3</Count>
        </RestartOnFailure>
      </Settings>
      <Actions Context="NetworkService">
        <ComHandler>
          <ClassId>{B1AEBB5D-EAD9-4476-B375-9C3ED9F32AFC}</ClassId>
          <Data><![CDATA[timer]]></Data>
        </ComHandler>
      </Actions>
    </Task>

    SvcRestartTaskLogon:

    <Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <URI>\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskLogon</URI>
        <SecurityDescriptor>D:P(A;;FA;;;SY)(A;;FA;;;BA)(A;;FRFW;;;S-1-5-80-123231216-2592883651-3715271367-3753151631-4175906628)(A;;FR;;;S-1-5-4)</SecurityDescriptor>
        <Version>1.0</Version>
        <Source>$(@%systemroot%\system32\sppc.dll,-200)</Source>
        <Author>$(@%systemroot%\system32\sppc.dll,-200)</Author>
        <Description>$(@%systemroot%\system32\sppc.dll,-202)</Description>
      </RegistrationInfo>
      <Triggers>
        <LogonTrigger>
          <Enabled>true</Enabled>
        </LogonTrigger>
      </Triggers>
      <Principals>
        <Principal id="InteractiveUser">
          <GroupId>S-1-5-4</GroupId>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>false</AllowHardTerminate>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>true</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
        <Priority>7</Priority>
        <RestartOnFailure>
          <Interval>PT1M</Interval>
          <Count>3</Count>
        </RestartOnFailure>
      </Settings>
      <Actions Context="InteractiveUser">
        <ComHandler>
          <ClassId>{b1aebb5d-ead9-4476-b375-9c3ed9f32afc}</ClassId>
          <Data>logon</Data>
        </ComHandler>
      </Actions>
    </Task>

    SvcRestartTaskNetwork:

    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <URI>\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskNetwork</URI>
        <SecurityDescriptor>D:P(A;;FA;;;SY)(A;;FA;;;BA)(A;;FRFW;;;S-1-5-80-123231216-2592883651-3715271367-3753151631-4175906628)(A;;FR;;;S-1-5-87-431836887-2321537645-4075769387-3393595759-2187231311)</SecurityDescriptor>
        <Version>1.0</Version>
        <Source>$(@%systemroot%\system32\sppc.dll,-200)</Source>
        <Author>$(@%systemroot%\system32\sppc.dll,-200)</Author>
        <Description>$(@%systemroot%\system32\sppc.dll,-203)</Description>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Microsoft-Windows-NetworkProfile/Operational"&gt;&lt;Select Path="Microsoft-Windows-NetworkProfile/Operational"&gt;*[System[EventID=10000]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="NetworkService">
          <UserId>S-1-5-20</UserId>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>false</AllowHardTerminate>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>false</Enabled>
        <Hidden>true</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
        <Priority>7</Priority>
        <RestartOnFailure>
          <Interval>PT1M</Interval>
          <Count>3</Count>
        </RestartOnFailure>
      </Settings>
      <Actions Context="NetworkService">
        <ComHandler>
          <ClassId>{b1aebb5d-ead9-4476-b375-9c3ed9f32afc}</ClassId>
          <Data><![CDATA[network]]></Data>
        </ComHandler>
      </Actions>
    </Task>


    Thursday, January 2, 2014 11:30 PM
  • I have had this problem a couple of times. Windows 8.1 not modified in any way and updated regularly.  But bot times the culprit was a driver of an oldish HP inkjet printer. Remove printer and the problem went away immediately and back to a clean EventLog.

    Adding this comment as I like others tried all these marvellous suggestions only for the issue to come back.

    I suggest you search deeper into the services which should start Automatically and fail to do.

    I hope this helps

    Thursday, August 20, 2015 9:24 AM
  • (when you access your task scheduler it say cannot load xxxx = retrieve and extract that file

    Copy the File (cut & paste: the file); which is xml from your C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform the one generating the error

    if needed after, try also to reset permissions removing your access granted to this file

    Then reimport this file, it will give you at each try an error line with an xml tag name (here for protpatfrm it was for my case the order and ???

       Why it changed ? maybe an update

    FROM:

    <RestartOnFailure>
          <Priority>3</Priority><Priority>PT1M</Priority>
     </RestartOnFailure>

    TO:

     <Priority>3</Priority>
     <RestartOnFailure>
          <Interval>PT1M</Interval><Count>3</Count>
     </RestartOnFailure>

    this deduced on other files get at C:\Windows\System32\Tasks\Microsoft\Windows

    there is also the : Task Scheduler Schema- https://msdn.microsoft.com/en-us/library/windows/desktop/aa383609(v=vs.85).aspx

    notepad - edit xml : try importing task within \Microsoft\Windows\SoftwareProtectionPlatform

    the try to do a visual check on existing task's purpose...

    the restart your machine

    then check you don't get your log full

    Log Name:      Application
    Source:        Microsoft-Windows-Security-SPP
    Date:          2016 10 09 12:55:43
    Event ID:      16385
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Surface
    Description:
    Failed to schedule Software Protection service for re-start at 2116-09-15T10:55:43Z. Error Code: 0x80070002.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Security-SPP" Guid="{E23B33B0-C8C9-472C-A5F9-F2BDFEA0F156}" EventSourceName="Software Protection Platform Service" />
        <EventID Qualifiers="49152">16385</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2016-10-09T10:55:43.000000000Z" />
        <EventRecordID>563747</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>Application</Channel>
        <Computer>Surface</Computer>
        <Security />
      </System>
      <EventData>
        <Data>0x80070002</Data>
        <Data>2116-09-15T10:55:43Z</Data>
      </EventData>
    </Event>

    - logs not more allow the retrieval of what made the xml malformed

    - I didn't have backups

    normal flow of event(when you start your machine):

    Classic 2016 10 10 20:40:04 Security-SPP 903 None
    Classic 2016 10 10 20:40:04 Security-SPP 16384 None
    Classic 2016 10 10 20:39:45 SecurityCenter 1 None
    Classic 2016 10 10 20:39:34 Security-SPP 902 None
    Classic 2016 10 10 20:39:34 Security-SPP 1003 None
    Classic 2016 10 10 20:39:33 Security-SPP 1066 None

    and not more about 2000 events:

    Classic 2016 10 09 12:59:13 Security-SPP 16385 None




    • Edited by Marco DG Monday, October 10, 2016 7:28 PM
    Monday, October 10, 2016 7:11 PM
  • Thanks bro. I don't have the fastest internet on the island. Copy-Paste did it for me.
    Thursday, April 13, 2017 5:27 PM