The “Task SvcRestartTask: The task XML contains an unexpected node” error can suddenly appear in Windows Task Scheduler, disrupting your automated tasks. This error indicates an issue with the XML format of a scheduled task, specifically related to the Software Protection Platform (SPP) service. Let’s dive into the causes and solutions for this problem.
When you encounter this error, you might see messages in the Event Viewer like:
Source: Microsoft-Windows-Security-SPP
Event ID: 16385
Failed to schedule Software Protection service for re-start at 2113-03-03T12:35:05Z. Error Code: 0x80041316.
Microsoft attributes this issue to several potential causes:
- The Task Scheduler service is disabled.
- The Software Protection Platform service isn’t running under the NETWORK SERVICE account.
- Read permissions for the NETWORK SERVICE account are missing on the SoftwareProtectionPlatform folder.
Let’s walk through the steps to resolve this error:
Step 1: Check the Task Scheduler service status
First, we need to ensure that the Task Scheduler service is running and set to start automatically:
- Press
Win + R, typeservices.msc, and press Enter to open the Services window. - Locate the “Task Scheduler” service in the list.
- If it’s not running, right-click on it and select “Start”.
- Double-click the service to open its properties, then set the “Startup type” to “Automatic” if it isn’t already.
Step 2: Verify the Software Protection Platform service settings
Next, we’ll check if the SPP service is running under the correct account:
- Open the Computer Management tool by right-clicking the Start button and selecting “Computer Management”.
- Navigate to Configuration > Task Scheduler > Task Scheduler Library > Microsoft > Windows > SoftwareProtectionPlatform.
- In the center pane, right-click on “SoftwareProtectionPlatform” and select “Properties”.
- Go to the “General” tab and click “Change User or Group” under “Security options”.
- Verify that the Software Protection Platform service is set to use the NETWORK SERVICE account. If not, change it to “NETWORK SERVICE”.
Step 3: Check NETWORK SERVICE account permissions
Now we’ll ensure the NETWORK SERVICE account has the necessary permissions:
- Open File Explorer and navigate to
C:\Windows\System32\Tasks\Microsoft\Windows\SoftwareProtectionPlatform. - Right-click on the SoftwareProtectionPlatform folder and select “Properties”.
- Switch to the “Security” tab and click “Edit”.
- If NETWORK SERVICE isn’t listed, click “Add” to include it.
- Select NETWORK SERVICE and ensure it has at least “Read” permissions.
Step 4: Restart the Software Protection Service
After making these changes, it’s important to restart the service:
- Return to the Services window (services.msc).
- Find the “Software Protection” service.
- Right-click on it and select “Restart”.
If you’re still encountering issues after following these steps, there’s a more general approach you can take for unexpected node errors in task XML:
General Solution for Unexpected Node Errors
Sometimes, Windows updates can change the XML task definition, leading to unexpected node errors. Here’s how to address this:
Step 1: Update the task generation method
If you’re using software to create tasks, make sure it’s up to date. Older versions might generate XML that’s incompatible with recent Windows updates.
Step 2: Recreate the task
Often, the simplest solution is to recreate the task:
- In Task Scheduler, right-click on the problematic task and select “Export”.
- Save the XML file as a backup.
- Delete the original task.
- Create a new task with the same settings as the original.
Step 3: Manual XML editing (Advanced users)
If you’re comfortable editing XML, you can try to fix the issue manually:
- Export the task as described above.
- Open the XML file in a text editor like Notepad++.
- Look for any unusual or duplicate nodes that might be causing the error.
- Remove or correct any problematic XML elements.
- Import the edited XML back into Task Scheduler.
Remember, XML editing can be complex, so only attempt this if you’re familiar with XML structure and Task Scheduler’s requirements.
By following these steps, you should be able to resolve the “Task SvcRestartTask: The task XML contains an unexpected node” error and get your scheduled tasks back on track. If problems persist, consider seeking help from Microsoft Support or a qualified IT professional.