Skip to content

Start-Job -Credential fails on Linux #7172

@rkeithhill

Description

@rkeithhill

Steps to reproduce

Start Ubuntu 16.04 running in WSL.
Start pwsh-preview (preview 3)
Create another account (sudo adduser test (password: test)
Execute su - test to log in and verify password. Exit that login.

Execute:

Start-Job -Credential (Get-Credential) {whoami} | Wait-Job | Receive-Job

Expected behavior

Outputs

test

Actual behavior

An error has occurred which PowerShell cannot handle. A remote session might have ended.
+ CategoryInfo          : OpenError: (localhost:String) [], PSRemotingDataStructureException
+ FullyQualifiedErrorId : PSSessionStateBroken

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0-preview.3
PSEdition                      Core
GitCommitId                    v6.1.0-preview.3
OS                             Linux 4.4.0-17134-Microsoft #112-Microsoft Thu Jun 07 22:57:00 PST 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

I see this issue was referenced in #1365 and was closed as fixed. Perhaps a regression?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions