Skip to content

Attempting to Enter-PSSession fails, because libpsrpclient isn't found #3520

Closed

Description

@lf-

First off, this was tested on Alpha 17 because Alpha 18 doesn't build on Arch Linux. It should still be there as the DllImport for libpsrpclient is still there in git master.

From what I understand, libpsrpclient was replaced by the psrp package, so a failure to find libpsrpclient is probably a bug.

Steps to reproduce

  1. Create PSSession, my tests were done with -Authentication Credssp with a target of a Windows system
  2. Reproduce running new-pssession in a newly built PowerShell should not cause the shell to exit #3476, but if workaround is applied, reproduce this issue

Expected behavior

Get into a session.

Actual behavior

etsn : Unable to load DLL 'libpsrpclient': The specified module could not be found.
 (Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ etsn windowsbox -cred (Get-Credential) -Authentication credssp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enter-PSSession], DllNotFoundException
    + FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.EnterPSSessionCommand

Environment data

> $PSVersionTable
Name                           Value                                                                                                                                                          
----                           -----                                                                                                                                                          
PSVersion                      6.0.0-alpha                                                                                                                                                    
PSEdition                      Core                                                                                                                                                           
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                        
BuildVersion                   3.0.0.0                                                                                                                                                        
GitCommitId                    Could not find file '/usr/lib/powershell/ubuntu.16.04-x64/powershell.version'.                                                                                 
CLRVersion                                                                                                                                                                                    
WSManStackVersion              3.0                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                            
SerializationVersion           1.1.0.1        

Version from pacman because $PSVersionTable isn't actually saying the version:

Version : 6.0.0.alpha.17-2

Activity

  1. iSazonov commented on Apr 10, 2017

    @iSazonov
    Collaborator

    jade (@lf-) Currently we migrated to MSBuild and replaced the libpsrpclient with psrp #3477 #3271 So you need update the build process in Arch repo.

  2. added
    Issue-Question
    on Apr 10, 2017
  3. joeyaiello commented on Oct 1, 2017

    @joeyaiello
    Contributor

    This is very old, Arch specific, good chance it's working now. If not, feel free to open a new issue.

  4. added
    Resolution-Answered
    on Oct 4, 2017
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-QuestionResolution-Answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions