Title: Set-Clipboard in PowerShell Core on Windows Results in Throwing CommandNotFoundException · Issue #4307 · PowerShell/PowerShell · GitHub
Open Graph Title: Set-Clipboard in PowerShell Core on Windows Results in Throwing CommandNotFoundException · Issue #4307 · PowerShell/PowerShell
X Title: Set-Clipboard in PowerShell Core on Windows Results in Throwing CommandNotFoundException · Issue #4307 · PowerShell/PowerShell
Description: Set-Clipboard throws a CommandNotFoundException in PowerShell Core on Windows. There is a similar issue #3618 open for Mac. A workaround could be piping to clip.exe in Windows but this passes functionality out of PowerShell. Steps to rep...
Open Graph Description: Set-Clipboard throws a CommandNotFoundException in PowerShell Core on Windows. There is a similar issue #3618 open for Mac. A workaround could be piping to clip.exe in Windows but this passes funct...
X Description: Set-Clipboard throws a CommandNotFoundException in PowerShell Core on Windows. There is a similar issue #3618 open for Mac. A workaround could be piping to clip.exe in Windows but this passes funct...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4307
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-Clipboard in PowerShell Core on Windows Results in Throwing CommandNotFoundException","articleBody":"Set-Clipboard throws a CommandNotFoundException in PowerShell Core on Windows. There is a similar issue #3618 open for Mac. A workaround could be piping to clip.exe in Windows but this passes functionality out of PowerShell. \r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nGet-Content -Path myfile.txt | Set-Clipboard\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nText piped or passed into command should get set to the clipboard.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```PowerShell\r\nGet-Content -Path myfile.txt | Set-Clipboard\r\nSet-Clipboard : The term 'Set-Clipboard' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:1 char:32\r\n+ Get-Content -Path myfile.txt | Set-Clipboard\r\n+ ~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (Set-Clipboard:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n$PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.4\r\nOS Microsoft Windows 10.0.14393\r\nPlatform Win32NT\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```\r\n","author":{"url":"https://github.com/ephos","@type":"Person","name":"ephos"},"datePublished":"2017-07-20T15:36:18Z","url":"https://github.com/PowerShell/PowerShell/issues/4307"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:a4a3c6db-7193-3515-6a43-3bd6fda1962c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8702:6A178:AB7BE:E8F80:6AFD4A1B |
| html-safe-nonce | 3782fdc630db4d73d6fd0ebee7f6adac942183100bd034a23d1bc18ee47fe128 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzAyOjZBMTc4OkFCN0JFOkU4RjgwOjZBRkQ0QTFCIiwidmlzaXRvcl9pZCI6IjE2NzY5MjQzNjU2NzA1MzM2NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 34da3cc6b14844ae9287037b52f38ea1110120d1852cac3ce1b9a2a27366e884 |
| hovercard-subject-tag | issue:244406884 |
| 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/4307/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc578583139fd8f9b785d45af2230bbf844b63dae26666de111a856b436bf53e/PowerShell/PowerShell/issues/4307 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc578583139fd8f9b785d45af2230bbf844b63dae26666de111a856b436bf53e/PowerShell/PowerShell/issues/4307 |
| og:image:alt | Set-Clipboard throws a CommandNotFoundException in PowerShell Core on Windows. There is a similar issue #3618 open for Mac. A workaround could be piping to clip.exe in Windows but this passes funct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ephos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width