Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Using Copy-Item from Linux (Ubuntu 16.04.2) To Windows (2016 Server Core) #4542

Copy link
Copy link
@dnataraj

Description

@dnataraj
Issue body actions

I'm wondering, since SSH remoting from Linux to Windows is available in some form now, if it will be possible eventually to copy files from Linux to Windows.

I've got the remoting to work very nicely following this excellent guide https://github.com/PowerShell/PowerShell/tree/master/demos/SSHRemoting

Steps to reproduce

$session = New-PSSession -HostName remotewinservercore2016.azure.com -UserName foo

Copy-Item -Path ./foo.text -Destination C:\users\foo\ -Verbose -ToSession $session

Expected behavior


Actual behavior

Copy-Item : Unable to load DLL 'api-ms-win-core-file-l1-2-2.dll': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
At line:1 char:1
+ Copy-Item -Path ./Downloads/com.cer -Destination C:\users\op ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], DllNotFoundException
    + FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.CopyItemCommand

Environment data

> $PSVersionTable

Name                           Value                                                                                                                                                      
----                           -----                                                                                                                                                      
PSVersion                      6.0.0-beta                                                                                                                                                 
PSEdition                      Core                                                                                                                                                       
GitCommitId                    v6.0.0-beta.5                                                                                                                                              
OS                             Linux 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017                                                                                        
Platform                       Unix                                                                                                                                                       
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                    
PSRemotingProtocolVersion      2.3                                                                                                                                                        
SerializationVersion           1.1.0.1                                                                                                                                                    
WSManStackVersion              3.0           
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productOS-LinuxResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management moduleWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.