{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7342","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7342/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7342/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7342/events","html_url":"https://github.com/PowerShell/PowerShell/issues/7342","id":343784584,"node_id":"MDU6SXNzdWUzNDM3ODQ1ODQ=","number":7342,"title":"Enter-PSSession fails from Docker image","user":{"login":"Stlouistechy","id":37037409,"node_id":"MDQ6VXNlcjM3MDM3NDA5","avatar_url":"https://avatars1.githubusercontent.com/u/37037409?v=4","gravatar_id":"","url":"https://api.github.com/users/Stlouistechy","html_url":"https://github.com/Stlouistechy","followers_url":"https://api.github.com/users/Stlouistechy/followers","following_url":"https://api.github.com/users/Stlouistechy/following{/other_user}","gists_url":"https://api.github.com/users/Stlouistechy/gists{/gist_id}","starred_url":"https://api.github.com/users/Stlouistechy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stlouistechy/subscriptions","organizations_url":"https://api.github.com/users/Stlouistechy/orgs","repos_url":"https://api.github.com/users/Stlouistechy/repos","events_url":"https://api.github.com/users/Stlouistechy/events{/privacy}","received_events_url":"https://api.github.com/users/Stlouistechy/received_events","type":"User","site_admin":false},"labels":[{"id":428956727,"node_id":"MDU6TGFiZWw0Mjg5NTY3Mjc=","url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Area-Remoting","name":"Area-Remoting","color":"5319e7","default":false},{"id":423526741,"node_id":"MDU6TGFiZWw0MjM1MjY3NDE=","url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Issue-Discussion","name":"Issue-Discussion","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-23T20:31:39Z","updated_at":"2018-07-25T01:58:30Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\n- Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n- Fill out the following repro template:\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n-->\r\n\r\nSteps to reproduce\r\n------------------\r\nFrom a RHEL server running docker, pull down latest release by running:\r\ndocker run -it microsoft/powershell\r\nFrom PS command prompt, connect to a Windows 2012 R2 server by running:\r\nPS /> $creds = Get-Credential\r\nPS /> Enter-PSSession -ComputerName {Win2012-R2 Hostname} -Authentication Basic -Credential $creds\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nPS connects to server\r\n\r\nActual behavior\r\n---------------\r\n\r\nEnter-PSSession : Connecting to remote server {Win2012-R2 Hostname} failed with the following error message : MI_RESULT_ACCESS_DENIED For more information, see the about_Remote_Troubleshooting Help topic.\r\nAt line:1 char:1\r\n+ Enter-PSSession -ComputerName {Win2012-R2 Hostname} -Authentica ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo          : InvalidArgument: ({Win2012-R2 Hostname}:String) [Enter-PSSession], PSRemotingTransportException\r\n+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed\r\n\r\nEnvironment data\r\n----------------\r\n\r\n<!-- provide the output of $PSVersionTable -->\r\n\r\nPS /> $psversiontable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.0.3\r\nPSEdition                      Core\r\nGitCommitId                    v6.0.3\r\nOS                             Linux 3.10.0-693.21.1.el7.x86_64 #1 SMP Fri Feb 23 18:54:16 UTC 2018\r\nPlatform                       Unix\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments/407608161","html_url":"https://github.com/PowerShell/PowerShell/issues/7342#issuecomment-407608161","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7342","id":407608161,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzYwODE2MQ==","user":{"login":"chuanjiao10","id":8968667,"node_id":"MDQ6VXNlcjg5Njg2Njc=","avatar_url":"https://avatars0.githubusercontent.com/u/8968667?v=4","gravatar_id":"","url":"https://api.github.com/users/chuanjiao10","html_url":"https://github.com/chuanjiao10","followers_url":"https://api.github.com/users/chuanjiao10/followers","following_url":"https://api.github.com/users/chuanjiao10/following{/other_user}","gists_url":"https://api.github.com/users/chuanjiao10/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanjiao10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanjiao10/subscriptions","organizations_url":"https://api.github.com/users/chuanjiao10/orgs","repos_url":"https://api.github.com/users/chuanjiao10/repos","events_url":"https://api.github.com/users/chuanjiao10/events{/privacy}","received_events_url":"https://api.github.com/users/chuanjiao10/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T01:58:30Z","updated_at":"2018-07-25T01:58:30Z","author_association":"NONE","body":"hi Stlouistechy:\r\n docker run -it microsoft / powershell ,then you get a **linux powershell**.\r\nthe only way is **OVER SSHD** from a **docker linux powershell** to windows,This is the by design.\r\nso this issue is a  question"}}
{"actor":{"display_login":"chuanjiao10"}}