Forum Discussion
Install failed at Attempting to get task info for MCC Install Scheduled Task
I think this is the relevant section
[04/02/2026 12:49:55]
Completed registering task to update MCC scripts
[04/02/2026 12:49:55]
Setting LastCompletedInstallStep
[04/02/2026 12:49:55]
Registering MCC install task and waiting for completion
[04/02/2026 12:49:55]
RegisterScheduledTask_InstallMccOnWsl (InstallMccOnWsl.ps1)
[04/02/2026 12:49:55]
Registering scheduled task as local account
[04/02/2026 12:49:56]
Completed registering scheduled task for MCC Install
[04/02/2026 12:49:56]
Setting LastCompletedInstallStep
[04/02/2026 12:49:56]
Successfully registered MCC Install Scheduled task
INFO: [04/02/2026 12:50:01]
INFO: [04/02/2026 12:50:01] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:02] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:02]
Attempting to get task info for MCC Install Scheduled Task, Attempt 1 of 12.
INFO: [04/02/2026 12:50:07]
INFO: [04/02/2026 12:50:07] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:08] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:08]
Attempting to get task info for MCC Install Scheduled Task, Attempt 2 of 12.
INFO: [04/02/2026 12:50:13]
INFO: [04/02/2026 12:50:13] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:14] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:14]
Attempting to get task info for MCC Install Scheduled Task, Attempt 3 of 12.
INFO: [04/02/2026 12:50:19]
INFO: [04/02/2026 12:50:19] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:20] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:20]
Attempting to get task info for MCC Install Scheduled Task, Attempt 4 of 12.
INFO: [04/02/2026 12:50:25]
INFO: [04/02/2026 12:50:25] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:25] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:25]
Attempting to get task info for MCC Install Scheduled Task, Attempt 5 of 12.
INFO: [04/02/2026 12:50:31]
INFO: [04/02/2026 12:50:31] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:31] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:31]
Attempting to get task info for MCC Install Scheduled Task, Attempt 6 of 12.
INFO: [04/02/2026 12:50:37]
INFO: [04/02/2026 12:50:37] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:37] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:37]
Attempting to get task info for MCC Install Scheduled Task, Attempt 7 of 12.
INFO: [04/02/2026 12:50:43]
INFO: [04/02/2026 12:50:43] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:43] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:43]
Attempting to get task info for MCC Install Scheduled Task, Attempt 8 of 12.
INFO: [04/02/2026 12:50:49]
INFO: [04/02/2026 12:50:49] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:49] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:49]
Attempting to get task info for MCC Install Scheduled Task, Attempt 9 of 12.
INFO: [04/02/2026 12:50:55]
INFO: [04/02/2026 12:50:55] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:50:55] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:50:55]
Attempting to get task info for MCC Install Scheduled Task, Attempt 10 of 12.
INFO: [04/02/2026 12:51:00]
INFO: [04/02/2026 12:51:00] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:51:01] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:51:01]
Attempting to get task info for MCC Install Scheduled Task, Attempt 11 of 12.
INFO: [04/02/2026 12:51:06]
INFO: [04/02/2026 12:51:06] MCC Install Scheduled Task completed with non-zero exit code: 267011. LastRunTime: 11/30/1999 00:00:00, TaskState: Ready
INFO: [04/02/2026 12:51:07] Task verification failed. Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00
[04/02/2026 12:51:07]
Attempting to get task info for MCC Install Scheduled Task, Attempt 12 of 12.
[04/02/2026 12:51:12]
FINAL TASK DIAGNOSTICS - Task State: Ready, LastTaskResult: 267011, LastRunTime: 11/30/1999 00:00:00, NumberOfMissedRuns: 0
[04/02/2026 12:51:12]
Unable to get task info for MCC Install Scheduled Task, too many failed attempts (12) to get scheduled task info please check logs for failure and re-run
[04/02/2026 12:51:12]
System.Management.Automation.RuntimeException: Unable to get task info for MCC Install Scheduled Task, too many failed attempts to get scheduled task info please check logs for failure and re-run
[04/02/2026 12:51:12]
[2026-04-02] [12:51:12 PM]
[04/02/2026 12:51:12]
WSL MCC install failed (ReturnCode: 501)
[04/02/2026 12:51:12]
[2026-04-02] [12:51:12 PM]
[04/02/2026 12:51:12]
Setting InvocationExitCode
[04/02/2026 12:51:12]
Setting LastCompletedInstallStep
[04/02/2026 12:51:12]
When I ran the script again I got this
[04/03/2026 12:27:55]
Checking for previous installation resources
PS>TerminatingError(Get-ScheduledTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: No MSFT_ScheduledTask objects found with property 'TaskName' equal to 'MCC_Install_Task'. Verify the value of the property and retry."
[04/03/2026 12:27:58]
No previous installation detected, proceeding with install
PS>TerminatingError(Get-ScheduledTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: No MSFT_ScheduledTask objects found with property 'TaskName' equal to 'MCC_Monitor_Task'. Verify the value of the property and retry."
[04/03/2026 12:27:58]
No previous monitoring task detected, proceeding with install
PS>TerminatingError(Get-ScheduledTask): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: No MSFT_ScheduledTask objects found with property 'TaskName' equal to 'MCC_PostUpdate_Task'. Verify the value of the property and retry."
[04/03/2026 12:27:59]
No previous post update task detected, proceeding with install
[04/03/2026 12:27:59]