Skip to content

Can't Enter-PSSession with $PSSessionConfigurationName="Powershell.7" #14274

@vlj

Description

@vlj

Hi,
I didn't find any info on this issue at all, I have no result when looking for the error code (2689860592).

Steps to reproduce

Install Powershell 7.1 on a local and remote computer (I tried both with msi installer and windows store), enable WinRM on both computer (via Enable-PSRemoting)
Then set $PSSessionConfigurationName to the value "Powershell.7" (or "Powershell.7.1.0", or anything that get returned by Get-PSSessionConfiguration).
Then try to login via

$cred=Get-Credential;
Enter-PSSession -ComputerName XXX -Credential ${cred}

Note that it also happens with Powershell 5.1 on the client side. It looks like an issue on the server side.
I also reproduce it on several machine (all with Windows 10 Pro, 20H1 and 20H2)

Expected behavior

EnterPSSession gives a prompt for Pwsh 7

Actual behavior

Enter-PSSession: Connecting to remote server PC-VINCENT failed with the following error message : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2689860592" Machine="PC-VINCENT"><f:Message><f:ProviderFault provider="PowerShell.7" path="C:\WINDOWS\system32\PowerShell\7.1.0\pwrshplugin.dll"></f:ProviderFault></f:Message></f:WSManFault> For more information, see the about_Remote_Troubleshooting Help topic.

There is no info on about_Remote_Troubleshooting.

Environment data

On the client :

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

On the server (I get them by connecting via ssh) :

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-RemotingPSRP issues with any transport layerWG-Securitysecurity related areas such as JEA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions