The code to connect to a container is hardcoded to start powershell.exe. Need to expose a parameter to allow starting pwsh.
Also, -ContainerId requires full hash and not just the partial hash which is a usability problem.
Steps to reproduce
docker run microsoft/windowsservercore
# get containerid
docker ps
enter-pssession -containerid <containerId>
Expected behavior
Ability to connect to PowerShell Core via PowerShell Direct
Actual behavior
Can only connect to Windows PowerShell
Environment data
Name Value
---- -----
PSVersion 6.1.0-preview.1
PSEdition Core
GitCommitId v6.1.0-preview.1
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The code to connect to a container is hardcoded to start powershell.exe. Need to expose a parameter to allow starting
pwsh.Also,
-ContainerIdrequires full hash and not just the partial hash which is a usability problem.Steps to reproduce
Expected behavior
Actual behavior
Environment data