Forum Discussion

hoyty76's avatar
hoyty76
Steel Contributor
Apr 02, 2026

Install failed at Attempting to get task info for MCC Install Scheduled Task

Built a fresh Windows Server 2025 from March 2026 ISO and installed Hyper-V / WSL. After reboots I ran the script. It failed at the scheduled task step. Not sure how to troubleshoot this? Tried to re-run install script and errored out differently. I attached the logs. I renamed from .log to .docx to trick the attachment filter.

7 Replies

  • Hi,

    Thanks for sharing the log snippet — this finally clarifies the failure.

    Your scheduled task is created successfully, but it never runs. The key indicators are:

    • TaskState: Ready
    • LastRunTime: 11/30/1999 (the task never executed)
    • LastTaskResult: 267011

    Exit code 267011 means the task could not start because the user account used for the task could not be logged on.

    This usually happens on Server 2025 when:

    ✔️ 1. The system was not rebooted after enabling Hyper‑V or WSL

    Task Scheduler is present but not fully initialized. A reboot is required before running the MCC installer.

    ✔️ 2. The scheduled task is created under a local account that cannot log on

    Some Server 2025 builds block non‑interactive local accounts from starting scheduled tasks until after a reboot.

    ✔️ 3. The first run left partial state

    Even if the task is deleted, the runtime account may still be in an inconsistent state.

    ✔️ Recommended steps

    1. Reboot the server
    2. Open an elevated PowerShell
    3. Remove any leftover MCC folders: Remove-Item -Recurse -Force "C:\ProgramData\Microsoft\ConnectedCache"
    4. Remove any MCC‑related scheduled tasks
    5. Run the installer again from an elevated session

    If the task still doesn’t start, we can check the exact account used by the task and adjust its logon permissions.

    Let me know what happens after a clean reboot + reinstall.

  • Hi,

    Thanks for the update. I can’t access personal SharePoint links from the forum, so I’m not able to open the logs directly.

    If you can paste the relevant error section (the part around the failure), I can help you pinpoint the cause. The MCC installer usually fails at that step when:

    • leftover state exists from a previous attempt
    • the scheduled task was partially created
    • permissions or execution policy block the script
    • the ProgramData folder contains incomplete MCC files

    If you can share the error snippet, I’ll help you narrow it down.

    • hoyty76's avatar
      hoyty76
      Steel Contributor

      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]

      • hoyty76's avatar
        hoyty76
        Steel Contributor

        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]

  • Hi,

    This step of the MCC installer fails when the script cannot read or create the scheduled task “MCC Install Scheduled Task”. On a fresh Windows Server 2025 build, the most common causes are:

    ✔️ 1. Task Scheduler service not fully initialized

    Right after enabling Hyper‑V or WSL, the Task Scheduler service may not be ready until after a reboot. Make sure you reboot after each role/feature installation before running the MCC script.

    ✔️ 2. Script not running with elevated rights

    The installer must be executed from an elevated PowerShell session. If not, the scheduled task query fails with this exact symptom.

    ✔️ 3. Corrupted or partial first run

    Since the first attempt failed, the script may have created a partial task entry. Check and remove it if present:

    Get-ScheduledTask -TaskName "MCC Install Scheduled Task" -ErrorAction SilentlyContinue

    If it exists, delete it:

    Unregister-ScheduledTask -TaskName "MCC Install Scheduled Task" -Confirm:$false

    Then rerun the installer.

    ✔️ 4. Logs

    If you can share the relevant part of the log (the section around the scheduled task step), I can help pinpoint the exact failure.

    Let me know what you find after checking these points.

    • hoyty76's avatar
      hoyty76
      Steel Contributor
      1. Check
      2. Check
      3. Ran command and got no result. I guess it isn't there? When I reran the installer, it failed differently.
      4. I tried to attach logs on original post but didn't like it. Hopefully this link works. MCC logs includes primary run and secondary attempt.

      Thanks for the help.

  • hoyty76's avatar
    hoyty76
    Steel Contributor

    In case the attachments don't come through

    [04/02/2026 12:49:56] Successfully registered MCC Install Scheduled task

    [04/02/2026 12:50:02] Attempting to get task info for MCC Install Scheduled Task, Attempt 1 of 12.

    [04/02/2026 12:50:08] Attempting to get task info for MCC Install Scheduled Task, Attempt 2 of 12.

    [04/02/2026 12:50:14] Attempting to get task info for MCC Install Scheduled Task, Attempt 3 of 12.

    [04/02/2026 12:50:20] Attempting to get task info for MCC Install Scheduled Task, Attempt 4 of 12.

    [04/02/2026 12:50:25] Attempting to get task info for MCC Install Scheduled Task, Attempt 5 of 12.

    [04/02/2026 12:50:31] Attempting to get task info for MCC Install Scheduled Task, Attempt 6 of 12.

    [04/02/2026 12:50:37] Attempting to get task info for MCC Install Scheduled Task, Attempt 7 of 12.

    [04/02/2026 12:50:43] Attempting to get task info for MCC Install Scheduled Task, Attempt 8 of 12.

    [04/02/2026 12:50:49] Attempting to get task info for MCC Install Scheduled Task, Attempt 9 of 12.

    [04/02/2026 12:50:55] Attempting to get task info for MCC Install Scheduled Task, Attempt 10 of 12.

    [04/02/2026 12:51:01] Attempting to get task info for MCC Install Scheduled Task, Attempt 11 of 12.

    [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] Checking if WSL distro exists for runtime account: FAS-CCMI\CCUser

    [04/02/2026 12:51:12] Found Microsoft.DeliveryOptimization MSIX package, creating config file

    [04/02/2026 12:51:12] installationFolder: c:\mccwsl01

    [04/02/2026 12:51:12] Created temporary MSIX package details file at: c:\mccwsl01\msix-package-details-1894668066.json

    [04/02/2026 12:51:12] Creating MSIX package details file using local account scheduled task

    [04/02/2026 12:51:12] Created WSL script at: c:\mccwsl01\tempScript-1164416248.ps1

    [04/02/2026 12:51:12] Temporary file path: c:\mccwsl01\msix-package-details-1894668066.json

    [04/02/2026 12:51:12] Result file path: c:\mccwsl01\msix-creation-result-779615077.log

    [04/02/2026 12:51:23] No result file found - task may have failed to execute

    [04/02/2026 12:51:23] Successfully created MSIX package details file using local account scheduled task

    [04/02/2026 12:51:23] Cleaned up temporary file: c:\mccwsl01\msix-package-details-1894668066.json

    Unregistering.

    [04/02/2026 12:51:23] Unregistered base Ubuntu image version: Ubuntu-24.04-Mcc after successful install of MCC

    [04/02/2026 12:51:23] Setting InvocationEndTime

    [04/02/2026 12:51:23] Setting InvocationState

    [04/02/2026 12:51:23] Installer return code 501