Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenConsole 1.21.2405.06002 doesn't work with Task Scheduler #17205

Open
brian6932 opened this issue May 8, 2024 · 2 comments
Open

OpenConsole 1.21.2405.06002 doesn't work with Task Scheduler #17205

brian6932 opened this issue May 8, 2024 · 2 comments
Assignees
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase

Comments

@brian6932
Copy link

brian6932 commented May 8, 2024

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 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.

@brian6932 brian6932 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 8, 2024
@lhecker
Copy link
Member

lhecker commented 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?

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 8, 2024
@brian6932
Copy link
Author

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>
    <ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
    <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>

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels May 9, 2024
@carlos-zamora carlos-zamora added this to the Terminal v1.22 milestone May 15, 2024
@carlos-zamora carlos-zamora added Product-Conhost For issues in the Console codebase Area-Build Issues pertaining to the build system, CI, infrastructure, meta and removed Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 15, 2024
@lhecker lhecker self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build Issues pertaining to the build system, CI, infrastructure, meta Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase
Projects
None yet
Development

No branches or pull requests

4 participants