PowerShell: PowerShell 7 / Terminal window does not accept keystrokes when running over Azure WVD/RDS Webclient - See #17512
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Hi all.
We have been banging out heads against PowerShell 7/Terminal windows on server 2022 and Win11 that simply do not type when keystrokes are entered.
This happens exclusively when trying to type in a PowerShell window, running on Server 2022/Win11 Desktop or RemoteApp via AVD or RDS WebClient. This happens even when running PS with in a cmd.exe session.
Note - this happens in 5.1 as well for reference.
All input except PowerShell is working correctly.
This is me typing to a PowerShell 7/Terminal window via RDS/AVD using webclient. There is no input.
This is me typing to the same window via RDS/AVD not by webclient. RDP works fine.
Expected behavior
Typing in PowerShell 7/Terminal should be reflected in the PS window
Actual behavior
Typing in PowerShell 7/Terminal is not reflected in the PS window
Error details
No errors or feedback of any kind
Environment data
$PSVersionTable
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
Thanks for the help @daxian-dbw. Really glad to see there is a fix for this,
Hi @theJasonHelmick @JamesWTruher Sorry for the delay getting back to you.
I’ve compiled and run the code supplied and Keystrokes work, though with different “key” output.
I have also tested on .Net 7p7, same result.
Still cant type in only in PowerShell and interestingly, control key strokes (e.g. CTRL+V, Tab, etc.) and Enter and Backspace work too. Letter, numbers and special characters (!. @, $ etc.) do not.
Via RDS Webclient
Via RDS non-Webclient and local PC as a control