Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Start-Process -Credential prevents interactive input in both the caller and the new window #12129
This is a long-standing bug that also affects Windows PowerShell.
Currently, doing so effectively prevents interactive use of both the caller's window and the new window, because they seem to be competing for keyboard input.
Note: Curiously, if you start
Steps to reproduce
On Windows (update: problem verified on Windows 10 versions 1809 and 1909 - see
# Enter a different user's credentials (or even your own) when prompted. Set-Location C:\; Start-Process cmd -Credential (Get-Credential)
The call should return after having launched the
Typing in either window either has no effect or sometimes makes what was typed show up in the respective other window.
Behavior returns to normal when the new window is closed.
I just tried the repro steps again - I get the symptom every time, in the environment as reported.