Skip to content

Enter-PSSession does not work connected to 6.2.0-preview.1 endpoint on Windows ARM32 #8053

Closed

Description

Enter-PSSession does not work when trying to connect to the 6.2.0-preview.1 endpoint on a Windows IOT ARM32 on Raspberry Pi.

Invoke-Command with the same session works though.

Steps to reproduce

PS> $s = New-PSSession -computername x.x.x.x -credential Administrator -ConfigurationName PowerShell.6.2.0-preview.1
PS> Enter-PSSession $s

Expected behavior

Can connect interactively.

Actual behavior

PS> Enter-PSSession $s
Enter-PSSession : The term 'Measure-Object' is not recognized as the name of a cmdlet, function, script file, or
operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Enter-PSSession $s
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Measure-Object:String) [Enter-PSSession], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSRemotingProtocolVersion      2.3
Platform                       Win32NT
PSVersion                      6.2.0-preview.1
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
OS                             Microsoft Windows 10.0.17134
PSEdition                      Core
WSManStackVersion              3.0
GitCommitId                    6.2.0-preview.1
SerializationVersion           1.1.0.1

Activity

  1. added
    Issue-Bug
    WG-Remoting
    on Oct 17, 2018
  2. MedBouc commented on Dec 18, 2018

    @MedBouc

    same issue here.
    Works perfectly fine with windows Powershell 5.1 but not with any Powershell 6.x

  3. adityapatwardhan commented on Jan 7, 2019

    @adityapatwardhan
    MemberAuthor

    @MedBouchenafa It seems to be working fine for preview.3. Can you give it a try?

    $s2 = New-PSSession -computername 10.31.62.246 -credential Administrator -ConfigurationName PowerShell.6.2.0-preview.3
    
    PS> $s2 | fl *
    
    
    State                  : Opened
    IdleTimeout            : 7200000
    OutputBufferingMode    : Block
    DisconnectedOn         :
    ExpiresOn              :
    ComputerType           : RemoteMachine
    ComputerName           : 10.31.62.246
    ContainerId            :
    VMName                 :
    VMId                   :
    ConfigurationName      : PowerShell.6.2.0-preview.3
    InstanceId             : 3eb499d9-fda3-403d-8c2c-e5d0ebaaeab3
    Id                     : 1
    Name                   : WinRM1
    Availability           : Available
    ApplicationPrivateData : {DebugMode, DebugStop, UnhandledBreakpointMode, PSVersionTable...}
    Runspace               : System.Management.Automation.RemoteRunspace
    
    PS> icm $s2 { get-ciminstance Win32_ComputerSystem } | Select-Object -Property Name,Model,Manufacturer,PSComputername
    
    Name     Model          Manufacturer PSComputerName
    ----     -----          ------------ --------------
    MINWINPC Raspberry Pi 3 Raspberry Pi 10.31.62.246
  4. ghost closed this as completedon Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugResolution-AnsweredWG-Remoting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions