Title: Using Copy-Item from Linux (Ubuntu 16.04.2) To Windows (2016 Server Core) · Issue #4542 · PowerShell/PowerShell · GitHub
Open Graph Title: Using Copy-Item from Linux (Ubuntu 16.04.2) To Windows (2016 Server Core) · Issue #4542 · PowerShell/PowerShell
X Title: Using Copy-Item from Linux (Ubuntu 16.04.2) To Windows (2016 Server Core) · Issue #4542 · PowerShell/PowerShell
Description: 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:...
Open Graph Description: 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 nice...
X Description: 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 v...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4542
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using Copy-Item from Linux (Ubuntu 16.04.2) To Windows (2016 Server Core)","articleBody":"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.\r\n\r\nI've got the remoting to work very nicely following this excellent guide https://github.com/PowerShell/PowerShell/tree/master/demos/SSHRemoting\r\n\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n$session = New-PSSession -HostName remotewinservercore2016.azure.com -UserName foo\r\n\r\nCopy-Item -Path ./foo.text -Destination C:\\users\\foo\\ -Verbose -ToSession $session\r\n\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\n\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nCopy-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.\r\n(Exception from HRESULT: 0x8007007E)\r\nAt line:1 char:1\r\n+ Copy-Item -Path ./Downloads/com.cer -Destination C:\\users\\op ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [Copy-Item], DllNotFoundException\r\n + FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.CopyItemCommand\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\n\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.0-beta \r\nPSEdition Core \r\nGitCommitId v6.0.0-beta.5 \r\nOS Linux 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 \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```\r\n","author":{"url":"https://github.com/dnataraj","@type":"Person","name":"dnataraj"},"datePublished":"2017-08-10T08:15:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/4542/PowerShell/issues/4542"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db9d3db7-74d3-576e-91f5-749fadccfd7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C024:2A2344:6E86EF:96ED02:6A57D65D |
| html-safe-nonce | 092420ff3fb257f8c8e1dbfa46e0e2f1ba377eb979c896c6c590a361d5859fc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDI0OjJBMjM0NDo2RTg2RUY6OTZFRDAyOjZBNTdENjVEIiwidmlzaXRvcl9pZCI6IjEzMTYwNjk5ODgwNjc5NTYzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3d32bb1f0d31197664f6ae771f204aa19878f3a20a6d02d4c326b75741f2113b |
| hovercard-subject-tag | issue:249267087 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/4542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/024d3da9def86b4461a30e83da8bea1acea377c31531a276460910c436550c6a/PowerShell/PowerShell/issues/4542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/024d3da9def86b4461a30e83da8bea1acea377c31531a276460910c436550c6a/PowerShell/PowerShell/issues/4542 |
| og:image:alt | 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 nice... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dnataraj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width