Skip to content

Windows 2025_vs2026 runner fails when registering scheduled task #13828

@tumm0283

Description

@tumm0283

Description

I am using a GitHub Actions runner image from [actions/runner-images] and running a PowerShell script based on [GenerateResourcesAndImage.ps1]

When I try to register a scheduled task, I get the following errors:
COMException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
FileNotFoundException on $f.GetTask("$name")
Method invocation failed because [System.__ComObject] does not contain a method named 'Run'.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu Slim
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26
  • macOS 26 Arm64
  • Windows Server 2022
  • Windows Server 2025
  • Windows Server 2025 with Visual Studio 2026

Image version and build link

Generating new image

Is it regression?

no

Expected behavior

Scheduled task should be created and executed successfully.

Actual behavior

Image

Repro steps

Generate Windows2025_vs2026 image from main
i just tested the image from windows2025 works

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions