It has come to our attention, that Key Sequence Tasks executed in Royal TS for Windows or Royal TSX for macOS when using Windows 11 or Windows Server 2022don't seem to work under certain circumstances.

According to our tests, these key sequence tasks are not correctly executed in the remote session and embedded as External Application when PowerShell is hosted in conhost.exe.

PowerShell hosted in other applications we tested like:

  • Windows Terminal
  • Visual Studio Code
  • PowerShell ISE

are working fine. 

Client Side (Embedded External Application):

For embedded external applications, Windows Terminal is not really an option because of it's "special" UI, it can't correctly start in embedded mode. In this scenario, the PowerShell ISE would be the best option to use as a workaround.

Remote Session:

As a workaround, you can use any of the above-mentioned tools or probably any other tool of your choice which hosts PowerShell.

Note that this also affects Royal TSX for macOS (which uses FreeRDP)!

Interestingly, key sequence tasks work correctly in a command prompt (which is also hosted in conhost.exe). As mentioned above, this behavior started recently with Windows 11 and Windows Server 2022, and we were not able to find any information if this is a bug or intended behavior.