"Start-Process -NoNewWindow cmd.exe" will break the screen and will not accept input. #18980

Closed
opened 2026-01-31 06:30:15 +00:00 by claunia · 4 comments
Owner

Originally created by @ardotsis on GitHub (Nov 29, 2022).

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22623.0

Other Software

No response

Steps to reproduce

  1. Start PowerShell on WindowsTerminal.
  2. Type Start-Process -NoNewWindow cmd.exe (powershell.exe had the same effect.)

Expected Behavior

No response

Actual Behavior

Two processes are launched in one window. The screen is corrupted and does not accept user input properly.
I would suggest that some sort of restriction be placed on the commands.
(This bug report has been translated. Sorry if anything is unclear.)

Originally created by @ardotsis on GitHub (Nov 29, 2022). ### Windows Terminal version 1.15.2875.0 ### Windows build number 10.0.22623.0 ### Other Software _No response_ ### Steps to reproduce 1. Start PowerShell on WindowsTerminal. 2. Type `Start-Process -NoNewWindow cmd.exe` (`powershell.exe` had the same effect.) ### Expected Behavior _No response_ ### Actual Behavior Two processes are launched in one window. The screen is corrupted and does not accept user input properly. I would suggest that some sort of restriction be placed on the commands. (This bug report has been translated. Sorry if anything is unclear.)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 06:30:15 +00:00
Author
Owner

@237dmitry commented on GitHub (Nov 29, 2022):

I think this is PowerShell issue. The same behavior in different terminals on Windows and on Linux.

@237dmitry commented on GitHub (Nov 29, 2022): I think this is PowerShell issue. The same behavior in different terminals on Windows and on Linux.
Author
Owner

@237dmitry commented on GitHub (Nov 29, 2022):

This works if you add -Wait switch (identical cmd.exe without Start-Process)

Start-Process cmd.exe -NoNewWindow -Wait

@237dmitry commented on GitHub (Nov 29, 2022): This works if you add `-Wait` switch (identical `cmd.exe` without `Start-Process`) `Start-Process cmd.exe -NoNewWindow -Wait`
Author
Owner

@ardotsis commented on GitHub (Nov 29, 2022):

Thanks for your response! It is indeed a problem on the PowerShell side.
After typing Start-Process cmd.exe -NoNewWindow -Wait, pressing Ctrl + C continues the same behavior. But it is not a WindowsTerminal issue, so I will close this Issue after a while.

@ardotsis commented on GitHub (Nov 29, 2022): Thanks for your response! It is indeed a problem on the PowerShell side. After typing `Start-Process cmd.exe -NoNewWindow -Wait`, pressing `Ctrl + C` continues the same behavior. But it is not a WindowsTerminal issue, so I will close this Issue after a while.
Author
Owner

@DHowett commented on GitHub (Nov 30, 2022):

Thanks for following up!

@DHowett commented on GitHub (Nov 30, 2022): Thanks for following up!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18980