8000 Enter-PSSession Windows -> Linux throws "Cannot find drive" · Issue #3553 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Enter-PSSession Windows -> Linux throws "Cannot find drive" #3553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bgelens opened this issue Apr 13, 2017 · 9 comments
Closed

Enter-PSSession Windows -> Linux throws "Cannot find drive" #3553

bgelens opened this issue Apr 13, 2017 · 9 comments
Assignees
Labels
Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer
Milestone

Comments

@bgelens
Copy link
Contributor
bgelens commented Apr 13, 2017

Steps to reproduce

Create new PSSession and enter or just run Enter-PSSession immediately.
Doesn't matter if transport is WSMAN or SSH.

Expected behavior

Doesn't throw error and enters the session

Actual behavior

Does throw error and enters the session.
2017-04-13_20-48-53

Environment data

> $PSVersionTable
Name                           Value
----                           -----
CLRVersion
WSManStackVersion              3.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
GitCommitId                    v6.0.0-alpha.18
SerializationVersion           1.1.0.1
BuildVersion                   3.0.0.0
PSEdition                      Core
PSRemotingProtocolVersion      2.3
PSVersion                      6.0.0-alpha
@daviwil
Copy link
Contributor
daviwil commented Apr 24, 2017

Hey Ben, does this happen outside of VS Code too?

@bgelens
Copy link
Contributor Author
bgelens commented Apr 24, 2017

Hi @daviwil, Yes, this is happening outside of code too

@SteveL-MSFT SteveL-MSFT modified the milestones: 6.0.0-beta, 6.0.0 May 15, 2017
@joeyaiello joeyaiello modified the milestones: 6.0.0-HighPriority, 6.0.0 May 15, 2017
@attesch
Copy link
attesch commented May 19, 2017

This issue also occurs when passing a string that contains an asterisk as an argument to a command.

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' $authURI --user 'user:test*pass
'
Cannot find drive. A drive with the name 'user' does not exist.
At line:1 char:1
+ curl -X POST --header 'Content-Type: application/json' --header 'Acce ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (user:String) [], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound

@SteveL-MSFT SteveL-MSFT self-assigned this May 25, 2017
@SteveL-MSFT
Copy link
Member

@attesch your issue is #3931

@bgelens This doesn't repro for my using beta.2 on both the client (Windows) and server (Ubuntu16.04). Does this still repro for you?

@bgelens
Copy link
Contributor Author
bgelens commented Jun 5, 2017

@SteveL-MSFT I need to prep an environment to check this out. Will check this out asap

@bgelens
Copy link
Contributor Author
bgelens commented Jun 6, 2017

Doesn't repro for me with beta.2 either. Client (Server 2016) Server (CentOS 7.3)

@bgelens bgelens closed this as completed Jun 6, 2017
@DanielSSilva
Copy link
Contributor

This is happening to me (also from Windows to Linux), but only on the PowerShell Integrated Terminal, when trying to access to my raspberry (I'll assume it also happens to any other Linux OS). If I do the same through pwsh, it connects successfully.
image

@SteveL-MSFT
Copy link
Member

@tylerl0706 is this something you can try to repro?

@DanielSSilva
Copy link
Contributor

@SteveL-MSFT it got solved really fast. @tylerl0706 asked me to try with this CI build https://ci.appveyor.com/project/PowerShell/vscode-powershell/build/artifacts
And it worked!

@iSazonov iSazonov added the Resolution-Answered The question is answered. label Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer
Projects
None yet
Development

No branches or pull requests

7 participants
0