-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Start-Job -Credential fails on Linux #7172
Copy link
Copy link
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core modulecmdlets in the Microsoft.PowerShell.Core module
Description
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-JobExpected 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.0I see this issue was referenced in #1365 and was closed as fixed. Perhaps a regression?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core modulecmdlets in the Microsoft.PowerShell.Core module