From 4f510418335f8795fc9ad0d9481044298097a9bb Mon Sep 17 00:00:00 2001 From: Dmitrij Rubcov <90839552+dmitrijrub@users.noreply.github.com> Date: Tue, 24 Feb 2026 11:59:58 +0200 Subject: [PATCH] Remove scheduled task for runner initialization # Note: Runner startup is handled by user-data script at instance launch # Removed scheduled task to prevent duplicate runner registration --- images/windows-core-2022/windows-provisioner.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/images/windows-core-2022/windows-provisioner.ps1 b/images/windows-core-2022/windows-provisioner.ps1 index d83c4e8307..8a0aa911a4 100644 --- a/images/windows-core-2022/windows-provisioner.ps1 +++ b/images/windows-core-2022/windows-provisioner.ps1 @@ -45,8 +45,4 @@ Expand-Archive -Path actions-runner.zip -DestinationPath . Write-Host "Delete zip file" Remove-Item actions-runner.zip -$action = New-ScheduledTaskAction -WorkingDirectory "C:\actions-runner" -Execute "PowerShell.exe" -Argument "-File C:\start-runner.ps1" -$trigger = New-ScheduledTaskTrigger -AtStartup -Register-ScheduledTask -TaskName "runnerinit" -Action $action -Trigger $trigger -User System -RunLevel Highest -Force - -C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule \ No newline at end of file +C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 -Schedule