Failed to schedule Software Protection service for re-start at 2114-01-10T10:42:29Z. Error Code: 0x80041318.

I get this a lot. I know the trick of deleting the 3 SvcRestart files and importing them after extracting them from the Win 8.1 disk after renaming them to xml. My question is what settings should be used for the import. 

1 Some come up with a default of NETWORK or INTERACTIVE - do I leave these as they are, or use my own account? And set it to do it whether or not I'm logged on?
2. One is set to a fixed time each day, one to log on and one to be triggered.

The one that gets modified somehow by itself over time is the one set to a fixed time each day (error above). SvcRestartTask

So my question is what are the correct settings (for all settings) for all 3 and should they stay fixed, rather than getting modified by the computer as time goes on?


I also had a volsnap error after it:
The shadow copies of volume C: were aborted during detection because a critical control file could not be opened.

and  lost my system restore points.

sfc /scannow says no integrity violations
Answer
Answer

Task scheduled for ‘Software Protection Service’ might have gone corrupt. So Action plan to recreate the task:

Step 1: Locate the corrupted task references in the registry and in Task Scheduler
To do this, follow these steps:
1.  Open Task Scheduler. 
2.  Expand Task Scheduler Library tree in the left pane, and located the folder that contains the corrupted task. Make a note of the location of the corrupted task. You will need this information later in this procedure. 
3.  Locate the registry sub-key that corresponds to the corrupted task in one of the following registry sub-key. You can locate the subkey by searching for the name of the task:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree
Click the registry sub-key that corresponds to the corrupted task, and then make a note of the GUID value in the "Id" entry. For example, {2911FBBD-A0AA-4A79-A8EE-84EF7555A71B}. You will need this information in the next step of this procedure. 
4.  Locate the registry sub-key that corresponds to the corrupted task in one of the following registry three sub-keys. To locate this sub-key, search for the GUID value that you noted in the previous step. For example, {2911FBBD-A0AA-4A79-A8EE-84EF7555A71B}. The task will exist in only one of the three locations:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Plain
Or: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Logon
Or: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Boot
Make a note of the registry location of the corrupted task. You will need this information later in this procedure. 

Step 2: Create a temporary copy of the corrupted task file
To do this, follow these steps:
1.  Open the following folder in Windows Explorer: %SYSTEMDRIVE%\Windows\System32\Tasks\<Corrupted_Task_Name>
2.  Locate and then copy the task file that corresponds to the corrupted task to a temporary location. 

Step 3: Clean up the corrupted task
To do this, follow these steps:
1.  Delete the task file that corresponds to the corrupted task from the Tasks folder (%SYSTEMDRIVE%\Windows\System32\Tasks). 
2.  Delete the registry sub-key that corresponds to the corrupted task from the following registry sub-key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree 
3.  Delete the registry sub-key that corresponds to the corrupted task from the following registry sub-key. The task will be in GUID format. For example, {2911FBBD-A0AA-4A79-A8EE-84EF7555A71B}.

Note Refer to the note that you made earlier in this procedure to locate the registry folder.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks 
4.  Delete the registry sub-key that corresponds to the corrupted task from one of the following registry three sub-keys. The task will exist in only one of the three locations and will be in GUID format. For example, {2911FBBD-A0AA-4A79-A8EE-84EF7555A71B}.

Note Refer to the note that you made earlier in this procedure to locate the registry folder.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Plain Or: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Logon Or: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Boot 

Step 4: Re-create the task by using the temporary backed-up copy
To do this, follow these steps:
1.  Open Task Scheduler. 
2.  Expand Task Scheduler Library tree in the left pane, and open the folder that previously contained the corrupted task.

Note Refer to the note that you made earlier in this procedure to locate the folder. 
3.  Right-click the folder that previously contained the corrupted task, and then click Import Task. 
4.  In the Open dialog box, select All files (*.*). Browse to the temporary folder that contains the backed up task file, and then select the task file. Click Open. The new task is created and is visible in Task Scheduler. 

Or, you can use the following command line command to restore the backed-up task: Schtasks.exe /CREATE /TN <New_Task_Name> /XML <Xml_File_Name>

Hope this helps.

13 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 10, 2020 Views 16,672 Applies to: