OpenConsole 1.21.2405.06002 doesn't work with Task Scheduler #21639

Open
opened 2026-01-31 07:50:33 +00:00 by claunia · 3 comments
Owner

Originally created by @brian6932 on GitHub (May 8, 2024).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.21.1272.0

Windows build number

10.0.19044.4291

Other Software

Previously when you replaced conhost.exe with OpenConsole.exe there would be no problems, but now it breaks Task Scheduler, something between https://github.com/microsoft/terminal/compare/v1.20.11271.0...v1.21.1272.0. OpenConsole 1.20.2405.06001 works without fail.

Steps to reproduce

  1. Replace conhost.exe with OpenConsole.exe (cp OpenConsole.exe /c/windows/System32/conhost.exe -f)
  2. Try to run a scheduled task
  3. All scheduled tasks will result in 0xC0000142
  4. None actually properly run

Expected Behavior

Should work as before.

Actual Behavior

Tasks don't run.

Originally created by @brian6932 on GitHub (May 8, 2024). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.21.1272.0 ### Windows build number 10.0.19044.4291 ### Other Software Previously when you replaced `conhost.exe` with `OpenConsole.exe` there would be no problems, but now it breaks Task Scheduler, something between https://github.com/microsoft/terminal/compare/v1.20.11271.0...v1.21.1272.0. OpenConsole `1.20.2405.06001` works without fail. ### Steps to reproduce 1. Replace `conhost.exe` with `OpenConsole.exe` (`cp OpenConsole.exe /c/windows/System32/conhost.exe -f`) 1. Try to run a scheduled task 1. All scheduled tasks will result in `0xC0000142` 1. None actually properly run ### Expected Behavior Should work as before. ### Actual Behavior Tasks don't run.
claunia added the Product-ConhostIssue-BugArea-Build labels 2026-01-31 07:50:34 +00:00
Author
Owner

@lhecker commented on GitHub (May 8, 2024):

I've just tested this in a VM and it seemed to work for me:
image

Can you please export a task that reproduces the issue as XML and post it here?

@lhecker commented on GitHub (May 8, 2024): I've just tested this in a VM and it seemed to work for me: ![image](https://github.com/microsoft/terminal/assets/2256941/30117c50-e748-4399-8403-279a2311d7c9) Can you please export a task that reproduces the issue as XML and post it here?
Author
Owner

@brian6932 commented on GitHub (May 9, 2024):

All CLI (daemon) scheduled tasks for me were effected, no matter if I was running as SYSTEM or user, here's one.

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2024-05-02T17:47:50.8814648</Date>
    <Author>hostname\username</Author>
    <URI>\sshd</URI>
  </RegistrationInfo>
  <Triggers>
    <BootTrigger>
      <Enabled>true</Enabled>
    </BootTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>...</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <Priority>7</Priority>
    <RestartOnFailure>
      <Interval>PT1M</Interval>
      <Count>999</Count>
    </RestartOnFailure>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>C:\Users\username\scoop\apps\openssh\current\sshd.exe</Command>
    </Exec>
  </Actions>
</Task>
@brian6932 commented on GitHub (May 9, 2024): All CLI (daemon) scheduled tasks for me were effected, no matter if I was running as SYSTEM or user, here's one. ```xml <?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2024-05-02T17:47:50.8814648</Date> <Author>hostname\username</Author> <URI>\sshd</URI> </RegistrationInfo> <Triggers> <BootTrigger> <Enabled>true</Enabled> </BootTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>...</UserId> <LogonType>Password</LogonType> <RunLevel>LeastPrivilege</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>false</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <WakeToRun>false</WakeToRun> <Priority>7</Priority> <RestartOnFailure> <Interval>PT1M</Interval> <Count>999</Count> </RestartOnFailure> </Settings> <Actions Context="Author"> <Exec> <Command>C:\Users\username\scoop\apps\openssh\current\sshd.exe</Command> </Exec> </Actions> </Task> ```
Author
Owner

@brian6932 commented on GitHub (Mar 18, 2025):

Can still reproduce this on https://github.com/microsoft/terminal/releases/tag/v1.23.10732.0, which contains OpenConsole 1.23.2503.14002.

@brian6932 commented on GitHub (Mar 18, 2025): Can still reproduce this on https://github.com/microsoft/terminal/releases/tag/v1.23.10732.0, which contains OpenConsole `1.23.2503.14002`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21639